summaryrefslogtreecommitdiff
path: root/src/tools
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/tools
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/tools')
-rw-r--r--src/tools/CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 05c535863..c281df5b5 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -23,12 +23,10 @@ foreach(SRC ${TOOLS_SRCS})
install(TARGETS ${EXE}
DESTINATION tools
)
- if(IN_SOURCE)
- # Add the executable to the list of files for CPack to ignore
- get_target_property(EXE_BINARY ${EXE} LOCATION)
- get_filename_component(EXE_BINARY ${EXE_BINARY} NAME)
- add_to_cpack_ignored_files("${EXE_BINARY}$" TRUE)
- endif(IN_SOURCE)
+ # Add the executable to the list of files for CPack to ignore
+ get_target_property(EXE_BINARY ${EXE} LOCATION)
+ get_filename_component(EXE_BINARY ${EXE_BINARY} NAME)
+ add_to_cpack_ignored_files("${EXE_BINARY}$" TRUE)
endforeach(SRC)
# Only for Windows, set anopesmtp to require the wsock32 library