summaryrefslogtreecommitdiff
path: root/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 /CMakeLists.txt
parent595bc09ec14cd717295e56785a520a7689c4f193 (diff)
Fix cmake deprecation warning CMP0026.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d56c6bb71..b1a2d1be0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,9 +2,6 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
- if(POLICY CMP0026)
- cmake_policy(SET CMP0026 OLD)
- endif()
if(POLICY CMP0007)
cmake_policy(SET CMP0007 OLD)
endif()
@@ -411,7 +408,7 @@ add_subdirectory(modules)
add_subdirectory(include)
# Get the filename of the Anope binary, to use later
-get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION)
+set(SERVICES_BINARY "$<TARGET_FILE:${PROGRAM_NAME}>")
get_filename_component(SERVICES_BINARY ${SERVICES_BINARY} NAME)
# At install time, create the following additional directories