cmake: Use generator expression to target binary

This commit is contained in:
lat9nq 2023-06-16 03:23:48 -04:00
parent 35ced3c4bf
commit 0b28ddb5a6

View File

@ -3,5 +3,4 @@ add_executable(tzdb2nx
tzif.cpp
tzif.h)
set(TZDB2NX_PATH "${CMAKE_CURRENT_BINARY_DIR}/tzdb2nx" CACHE PATH "Path to tzdb2nx path")
set_target_properties(tzdb2nx PROPERTIES CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TZDB2NX_PATH})
set(TZDB2NX_PATH "$<TARGET_FILE:tzdb2nx>" CACHE PATH "Path to tzdb2nx path")