Man page export from the wrapper binary.
[alexxy/gromacs.git] / CMakeLists.txt
index 81b3f45d26f2b1c0e1ab0cd81ee7bad742d6d210..477c742764f7277e4c0462692ed78840e8e1277d 100644 (file)
@@ -81,16 +81,20 @@ set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
 set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/admin/InstallInfo.txt")
 set(CPACK_SOURCE_IGNORE_FILES "\\\\.isreposource$;\\\\.git/;\\\\.gitignore$")
 set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/CPackInit.cmake")
-SET(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR};/;${CMAKE_BINARY_DIR}/man;man")
+set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR};/;${CMAKE_BINARY_DIR}/share/man;share/man")
 set(CPACK_PACKAGE_CONTACT "gmx-users@gromacs.org")
 
 #must come after all cpack settings!
 include(CPack)
 
 set(SOURCE_IS_GIT_REPOSITORY OFF)
+set(SOURCE_IS_SOURCE_DISTRIBUTION OFF)
 if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
     set(SOURCE_IS_GIT_REPOSITORY ON)
 endif()
+if(NOT EXISTS "${CMAKE_SOURCE_DIR}/admin/.isreposource")
+    set(SOURCE_IS_SOURCE_DISTRIBUTION ON)
+endif()
 
 ########################################################################
 # Check and warn if cache generated on a different host is being reused
@@ -1061,21 +1065,6 @@ if(GMX_LOAD_PLUGINS)
 endif(GMX_LOAD_PLUGINS)
 set(VMD_QUIETLY TRUE CACHE INTERNAL "")
 
-if(EXISTS "${CMAKE_SOURCE_DIR}/admin/.isreposource")
-    if(NOT CMAKE_CROSSCOMPILING)
-        option(GMX_BUILD_MANPAGES "Build man pages" ON)
-    else()
-        message(STATUS "Building the man pages is not available when "
-            "cross-compiling the developer version from git")
-    endif()
-else()
-    #make sure source package contains all man pages
-    if(NOT EXISTS "${CMAKE_SOURCE_DIR}/man/man1/ngmx.1")
-        message(FATAL_ERROR "Man pages are missing from source package.")
-    endif()
-endif()
-mark_as_advanced(GMX_BUILD_MANPAGES)
-
 # Math and thread libraries must often come after all others when linking...
 if(HAVE_LIBM)
     list(APPEND GMX_EXTRA_LIBRARIES m)