summaryrefslogtreecommitdiff
path: root/include/CMakeLists.txt
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-06-03 21:42:06 +0100
committerSadie Powell <sadie@witchery.services>2023-06-03 21:51:07 +0100
commit9d0a6ddc67b1e7bd0c32603b6fa90b702c13447d (patch)
tree1e4d019535c89f67e7cf54a76afabe188947c668 /include/CMakeLists.txt
parent29db25dac7aff36b4f7239a9fabd57230534cf35 (diff)
parentfbf3b344740f6bd4f9337e485e35e9e8103428bc (diff)
Merge branch '2.0' into 2.1.
Diffstat (limited to 'include/CMakeLists.txt')
-rw-r--r--include/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 448e7fdac..763826344 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -6,8 +6,8 @@ set_target_properties(version-bin PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${L
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
- COMMAND ${version_BINARY} ${Anope_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h
+ COMMAND version-bin ${Anope_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h
DEPENDS version-bin ${SRC_SRCS}
)
# Add version-bin to list of files for CPack to ignore
@@ -19,4 +19,4 @@ if(NOT WIN32)
endif()
# Add a custom target to the above file
-add_custom_target(headers DEPENDS version-bin ${CMAKE_CURRENT_BINARY_DIR}/version_build)
+add_custom_target(headers DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h)