summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-29 22:04:53 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-29 22:04:53 +0000
commit7d9865150a2770161ea16f734f991d40696f8049 (patch)
tree696c6175fc05eee588cee788ba2c98be7b4997a8 /src/CMakeLists.txt
parent47fb48706c65ff72dfb1dcdda2bfa0301086e918 (diff)
Edits to CPack-related part of CMake to not include Autotools-built files from a dirty source tree.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1884 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2d6518f5b..d8ed60083 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -41,10 +41,6 @@ if(WIN32)
else(MINGW)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/win32.rc COMPILE_FLAGS "/i\"${Anope_SOURCE_DIR}/include\"")
endif(MINGW)
- if(IN_SOURCE)
- # Add the resource file to the list of files for CPack to ignore
- add_to_cpack_ignored_files("win32.rc$" TRUE)
- endif(IN_SOURCE)
endif(WIN32)
# Generate the Anope executable and set it's linker flags, also set it to export it's symbols even though it's not a module
@@ -62,10 +58,8 @@ add_dependencies(${PROGRAM_NAME} language headers)
get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION)
get_filename_component(SERVICES_BINARY ${SERVICES_BINARY} NAME)
set(SERVICES_BIN "${SERVICES_BINARY}")
-if(IN_SOURCE)
- # Add the Anope executable to the list of files for CPack to ignore
- add_to_cpack_ignored_files("${SERVICES_BINARY}$" TRUE)
-endif(IN_SOURCE)
+# Add the Anope executable to the list of files for CPack to ignore
+add_to_cpack_ignored_files("${SERVICES_BINARY}$" TRUE)
# Generate sysconf.h from the earlier configuration
configure_file(${Anope_SOURCE_DIR}/include/sysconf.h.cmake ${Anope_BINARY_DIR}/include/sysconf.h)