[ros-diffs] [spetreolle] 52205: [CMAKE] Implement concatenate_files() for unix.

spetreolle at svn.reactos.org spetreolle at svn.reactos.org
Sun Jun 12 22:23:22 UTC 2011


Author: spetreolle
Date: Sun Jun 12 22:23:22 2011
New Revision: 52205

URL: http://svn.reactos.org/svn/reactos?rev=52205&view=rev
Log:
[CMAKE]
Implement concatenate_files() for unix.

Modified:
    trunk/reactos/CMakeMacros.cmake

Modified: trunk/reactos/CMakeMacros.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeMacros.cmake?rev=52205&r1=52204&r2=52205&view=diff
==============================================================================
--- trunk/reactos/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/CMakeMacros.cmake [iso-8859-1] Sun Jun 12 22:23:22 2011
@@ -202,7 +202,7 @@
     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 @@
             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()




More information about the Ros-diffs mailing list