kopia lustrzana https://github.com/f4exb/sdrangel
Only copy file if different to avoid unnecessary rebuilds
rodzic
dc7232ee4f
commit
7012a7f43c
|
@ -114,7 +114,7 @@ if (LINUX)
|
||||||
macro(makeCopyFile src dest target)
|
macro(makeCopyFile src dest target)
|
||||||
if (NOT EXISTS ${dest})
|
if (NOT EXISTS ${dest})
|
||||||
add_custom_command(TARGET ${target} PRE_BUILD
|
add_custom_command(TARGET ${target} PRE_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${src} ${dest} DEPENDS ${dest} COMMENT "copy ${src} -> ${dest}")
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dest} DEPENDS ${dest} COMMENT "copy ${src} -> ${dest}")
|
||||||
endif ()
|
endif ()
|
||||||
endmacro()
|
endmacro()
|
||||||
else ()
|
else ()
|
||||||
|
@ -138,7 +138,7 @@ else ()
|
||||||
macro(makeCopy src dest target)
|
macro(makeCopy src dest target)
|
||||||
if (NOT EXISTS ${dest})
|
if (NOT EXISTS ${dest})
|
||||||
add_custom_command(TARGET ${target} POST_BUILD
|
add_custom_command(TARGET ${target} POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${src} ${dest} DEPENDS ${dest} COMMENT "copy ${src} -> ${dest}")
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dest} DEPENDS ${dest} COMMENT "copy ${src} -> ${dest}")
|
||||||
endif ()
|
endif ()
|
||||||
endmacro()
|
endmacro()
|
||||||
endif (LINUX)
|
endif (LINUX)
|
||||||
|
|
Ładowanie…
Reference in New Issue