summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-11-30 10:09:08 +0000
committerSadie Powell <sadie@witchery.services>2025-04-02 09:53:10 +0100
commit947ddc9e1b66e502f137790c6c623486bf0bb2c0 (patch)
treef324a1c84188bff7786f7ba4e61079a15c330208 /include
parent43dc6f75096b63efc9df8f6e313e10f076203e93 (diff)
Fix building on CMake 4.
This is a partial backport from 2.1.
Diffstat (limited to 'include')
-rw-r--r--include/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index a434be6e1..e76df454d 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.h ${CMAKE_CURRENT_BINARY_DIR}/build.h