summaryrefslogtreecommitdiff
path: root/src/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 /src/CMakeLists.txt
parent595bc09ec14cd717295e56785a520a7689c4f193 (diff)
Fix cmake deprecation warning CMP0026.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 49aa803ae..d957fb6df 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -93,7 +93,7 @@ if(GETTEXT_FOUND)
endif()
# Get the filename of the Anope executable as it is in on this system
-get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION)
+set(SERVICES_BINARY "$<TARGET_FILE:${PROGRAM_NAME}>")
get_filename_component(SERVICES_BINARY ${SERVICES_BINARY} NAME)
# Add the Anope executable to the list of files for CPack to ignore
add_to_cpack_ignored_files("${SERVICES_BINARY}$" TRUE)