Commit af74a4d9 by Christian Kern

Fix CMake "Policy CMP0026 is not set" Warning, when using CMake > 3.0.2.

Set TARGETs the clean way, using generators....
parent 9ff0f8d9
...@@ -28,12 +28,10 @@ function(CopyBin ...@@ -28,12 +28,10 @@ function(CopyBin
BIN bin BIN bin
DEST destination DEST destination
) )
get_target_property(bin_full_name ${bin} LOCATION)
add_custom_command( add_custom_command(
TARGET ${bin} TARGET ${bin}
POST_BUILD POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${bin_full_name} ${destination} COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${bin}> ${destination}
#COMMENT "Copying ${bin} to ${destination}"
) )
endfunction() endfunction()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment