diff options
author | Adam <Adam@anope.org> | 2011-06-27 15:35:09 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-06-27 15:35:09 -0400 |
commit | 936a50df2343553859f6514a3a44ac0afa19760b (patch) | |
tree | e274a41711ff752b5c09d4ee5550d11f03561af2 /include/CMakeLists.txt | |
parent | 3e9888092a7859dbf2c7b1cc6baffa192a007132 (diff) |
Fixed build on older cmake versions
Diffstat (limited to 'include/CMakeLists.txt')
-rw-r--r-- | include/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 0205fab95..c7d5456c7 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -6,7 +6,7 @@ set_target_properties(version PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLA get_target_property(version_BINARY version LOCATION) # 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 version_build +add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version_build COMMAND ${version_BINARY} ${Anope_SOURCE_DIR}/src/version.sh ${CMAKE_CURRENT_BINARY_DIR}/version.h DEPENDS version ${SRC_SRCS} ) @@ -45,4 +45,4 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif(CMAKE_COMPILER_IS_GNUCXX) # Add a custom target to the above file -add_custom_target(headers DEPENDS version version_build ${PCH_SOURCES_GCH}) +add_custom_target(headers DEPENDS version ${CMAKE_CURRENT_BINARY_DIR}/version_build ${PCH_SOURCES_GCH}) |