[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] applications/HLA_Tutorial CMakeLists.txt
From: |
certi-cvs |
Subject: |
[certi-cvs] applications/HLA_Tutorial CMakeLists.txt |
Date: |
Wed, 02 Jul 2008 09:39:49 +0000 |
CVSROOT: /sources/certi
Module name: applications
Changes by: Eric NOULARD <erk> 08/07/02 09:39:49
Modified files:
HLA_Tutorial : CMakeLists.txt
Log message:
Avoid putting builddir in source tar ball
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_Tutorial/CMakeLists.txt?cvsroot=certi&r1=1.6&r2=1.7
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/applications/HLA_Tutorial/CMakeLists.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- CMakeLists.txt 2 Jul 2008 09:38:41 -0000 1.6
+++ CMakeLists.txt 2 Jul 2008 09:39:49 -0000 1.7
@@ -62,7 +62,13 @@
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
-SET(CPACK_SOURCE_IGNORE_FILES
"/CVS/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*")
+# Avoid putting BUILDIR inside source package (simple case)
+IF ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
+ SET(CPACK_SOURCE_IGNORE_FILES
"/CVS/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*;\\\\.cproject;\\\\.project;autom4te.cache/*")
+ELSE ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
+ SET(CPACK_SOURCE_IGNORE_FILES
"/CVS/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*;\\\\.cproject;\\\\.project;autom4te.cache/*;${CMAKE_BINARY_DIR}/*")
+ENDIF ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
+
SET(CPACK_SOURCE_GENERATOR "ZIP;TGZ")
IF (WIN32)
SET(CPACK_GENERATOR "ZIP;NSIS")