diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-19 02:25:31 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-19 02:25:31 +0000 |
commit | 51353104ee019584441676289e563d5137049cdc (patch) | |
tree | fb99da243b1ed1241f21fbd982e02c6f047b7c7c /include/CMakeLists.txt | |
parent | ab658faa91456fa1e7da2e132549ac5dc7828fae (diff) |
Updated the CMakeLists.txt files to function under CMake 2.4.x (earliest version to work is 2.4.4 now).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1848 5417fbe8-f217-4b02-8779-1006273d7864
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 cc0ffc614..121bc852a 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -4,7 +4,7 @@ if(MSVC OR NOT SH) set_source_files_properties(version.sh.c PROPERTIES LANGUAGE CXX COMPILE_FLAGS "${CXXFLAGS}") # Generate version_sh executable to create version.h from the contents of version.sh, setting it's linker flags as well add_executable(version_sh version.sh.c) - set_target_properties(version_sh PROPERTIES LINK_FLAGS "${LDFLAGS}") + set_target_properties(version_sh PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}") # Generate version.h from the above executable and the version.log file from the main source directory, with dependencies to the given headers and all source files in the main Anope build add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.h COMMAND version_sh ${Anope_SOURCE_DIR}/version.log ${CMAKE_CURRENT_SOURCE_DIR}/version.sh ${CMAKE_CURRENT_BINARY_DIR}/version.h |