diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-28 01:28:51 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-28 01:28:51 -0400 |
commit | 85b07a94d7d0c54e221dbbb8333870beb47bb3ac (patch) | |
tree | 7a3300c7fb0bb57e40f3f226b2c1d350384ab864 /include/CMakeLists.txt | |
parent | 2e4099e9f2bdcfab963c1e86a3f02d6b3c1b0048 (diff) |
Fix version system so it doesn't cause the entire build tree to get rebuilt just because version.h gets regenerated, thanks to Adam for initial patch.
Diffstat (limited to 'include/CMakeLists.txt')
-rw-r--r-- | include/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index caef56a19..e7df5cfad 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -6,7 +6,7 @@ set_target_properties(version PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLA # Modify version.h from the above executable, with dependencies to the given headers, version.cpp, and all source files in the main Anope build add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.h COMMAND version ${Anope_SOURCE_DIR}/src/version.sh ${CMAKE_CURRENT_SOURCE_DIR}/version.h - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/services.h ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp ${SRC_SRCS} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp ${SRC_SRCS} ) # Add version to list of files for CPack to ignore get_target_property(version_BINARY version LOCATION) |