From f7def77f995bfac19c1213ec1b9fd87746cf5313 Mon Sep 17 00:00:00 2001 From: Sylvain Petreolle Date: Sun, 12 Jun 2011 22:23:22 +0000 Subject: [PATCH] [CMAKE] Implement concatenate_files() for unix. svn path=/trunk/; revision=52205 --- reactos/CMakeMacros.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reactos/CMakeMacros.cmake b/reactos/CMakeMacros.cmake index c9349bac336..409937b27b1 100644 --- a/reactos/CMakeMacros.cmake +++ b/reactos/CMakeMacros.cmake @@ -202,7 +202,7 @@ if(NOT MSVC_IDE) endfunction() endif() -if(WIN32) +if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows) macro(to_win_path _cmake_path _native_path) string(REPLACE "/" "\\" ${_native_path} "${_cmake_path}") endmacro() @@ -218,5 +218,11 @@ if(WIN32) DEPENDS ${_file2}) endmacro() else() - + macro(concatenate_files _file1 _file2 _output) + add_custom_command( + OUTPUT ${_output} + COMMAND cat ${_file1} ${_file2} > ${_output} + DEPENDS ${_file1} + DEPENDS ${_file2}) + endmacro() endif()