From af74a4d9b647889e28b816f121137dae5ecd6041 Mon Sep 17 00:00:00 2001 From: Christian Kern Date: Thu, 9 Oct 2014 18:29:58 +0200 Subject: [PATCH] Fix CMake "Policy CMP0026 is not set" Warning, when using CMake > 3.0.2. Set TARGETs the clean way, using generators.... --- CMakeCommon/CopyInstallFiles.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeCommon/CopyInstallFiles.cmake b/CMakeCommon/CopyInstallFiles.cmake index 00c4ef1..23e57e0 100644 --- a/CMakeCommon/CopyInstallFiles.cmake +++ b/CMakeCommon/CopyInstallFiles.cmake @@ -28,12 +28,10 @@ function(CopyBin BIN bin DEST destination ) - get_target_property(bin_full_name ${bin} LOCATION) add_custom_command( TARGET ${bin} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy ${bin_full_name} ${destination} - #COMMENT "Copying ${bin} to ${destination}" + COMMAND ${CMAKE_COMMAND} -E copy $ ${destination} ) endfunction() -- libgit2 0.26.0