cmake: Use generator expression to target binary
This commit is contained in:
@@ -3,5 +3,4 @@ add_executable(tzdb2nx
|
|||||||
tzif.cpp
|
tzif.cpp
|
||||||
tzif.h)
|
tzif.h)
|
||||||
|
|
||||||
set(TZDB2NX_PATH "${CMAKE_CURRENT_BINARY_DIR}/tzdb2nx" CACHE PATH "Path to tzdb2nx path")
|
set(TZDB2NX_PATH "$<TARGET_FILE:tzdb2nx>" CACHE PATH "Path to tzdb2nx path")
|
||||||
set_target_properties(tzdb2nx PROPERTIES CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TZDB2NX_PATH})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user