summaryrefslogtreecommitdiff
path: root/include/CMakeLists.txt
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-11-30 09:59:40 +0000
committerSadie Powell <sadie@witchery.services>2021-11-30 10:03:10 +0000
commitb9ccd4bb0bd9da7edb114366d47f3cadf3caee16 (patch)
treee2f5a7349acd2228a16e31b9b4a3e8b2ce591952 /include/CMakeLists.txt
parent595bc09ec14cd717295e56785a520a7689c4f193 (diff)
Fix cmake deprecation warning CMP0026.
Diffstat (limited to 'include/CMakeLists.txt')
-rw-r--r--include/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index a059aadba..3026c56b2 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -3,7 +3,7 @@ set_source_files_properties(version.cpp PROPERTIES LANGUAGE CXX COMPILE_FLAGS "$
# Generate version-bin executable to modify version.h, setting it's linker flags as well
add_executable(version-bin version.cpp)
set_target_properties(version-bin PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}")
-get_target_property(version_BINARY version-bin LOCATION)
+set(version_BINARY "$<TARGET_FILE:version-bin>")
# Modify version.h from the above executable, with dependencies to version.cpp
# and all of the source files in the main build
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version_build