mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
[CMAKE]
Implement concatenate_files() for unix. svn path=/trunk/; revision=52205
This commit is contained in:
parent
8c46f42495
commit
f7def77f99
1 changed files with 8 additions and 2 deletions
|
@ -202,7 +202,7 @@ if(NOT MSVC_IDE)
|
||||||
endfunction()
|
endfunction()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
|
||||||
macro(to_win_path _cmake_path _native_path)
|
macro(to_win_path _cmake_path _native_path)
|
||||||
string(REPLACE "/" "\\" ${_native_path} "${_cmake_path}")
|
string(REPLACE "/" "\\" ${_native_path} "${_cmake_path}")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
@ -218,5 +218,11 @@ if(WIN32)
|
||||||
DEPENDS ${_file2})
|
DEPENDS ${_file2})
|
||||||
endmacro()
|
endmacro()
|
||||||
else()
|
else()
|
||||||
|
macro(concatenate_files _file1 _file2 _output)
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${_output}
|
||||||
|
COMMAND cat ${_file1} ${_file2} > ${_output}
|
||||||
|
DEPENDS ${_file1}
|
||||||
|
DEPENDS ${_file2})
|
||||||
|
endmacro()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue