1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 12:03:14 +02:00

Fix cmake deprecation warning CMP0026.

This commit is contained in:
Sadie Powell
2021-11-30 09:59:40 +00:00
parent 595bc09ec1
commit b9ccd4bb0b
4 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -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