]> git.lyx.org Git - features.git/commitdiff
cmake: support source packaging
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 10 Feb 2011 22:44:59 +0000 (22:44 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 10 Feb 2011 22:44:59 +0000 (22:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37590 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt

index 7ea2eafecbc80a692329b914195974e6562ba8f8..179dac679180823dd208c4e0f144b4ec19e6d0ec 100644 (file)
@@ -530,6 +530,9 @@ set(CPACK_SOURCE_GENERATOR TGZ ZIP TBZ2)
 set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${TOP_SRC_DIR};/") # http://www.mail-archive.com/cmake@cmake.org/msg33720.html
 
 set(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${LYX_INSTALL_SUFFIX}")
+
+set(CPACK_SOURCE_GENERATOR TGZ ZIP TBZ2)
+set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${TOP_SRC_DIR};/") # http://www.mail-archive.com/cmake@cmake.org/msg33720.html
 #
 # needed by rpm
 set(CPACK_SET_DESTDIR "ON")
@@ -576,7 +579,9 @@ endif()
 # so we do not provide infofiles for
 # CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_WELCOME
 
-include(CPack)
+if(LYX_CPACK)
+       include(CPack)
+endif()
 
 #Now it is possible to create some packages
 # cd <BuildDir>