fixed CMake warning CMP0026
authorAndrew Karpow <andy@ndyk.de>
Sun, 19 Oct 2014 14:35:16 +0000 (16:35 +0200)
committerAndrew Karpow <andy@ndyk.de>
Sun, 19 Oct 2014 14:35:16 +0000 (16:35 +0200)
CMakeLists.txt

index 751ed00..ad7e33a 100644 (file)
@@ -29,7 +29,7 @@ file(GLOB RESOURCES
 )
 
 add_executable(mkdata htdocs/mkdata.c)
-get_target_property(MKDATA_EXE mkdata LOCATION)
+set(MKDATA_EXE $<TARGET_FILE:mkdata>)
 
 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/assets.c
     COMMAND ${MKDATA_EXE} ${RESOURCES} > ${PROJECT_BINARY_DIR}/assets.c