Man page export from the wrapper binary.
[alexxy/gromacs.git] / CPackInit.cmake
index eba4c45d7a8bc32c1c72d265f8cc94073fc3a76b..212f74947b2ff8ff0fdd37cfeed8ae7a8063d983 100644 (file)
@@ -1,10 +1,10 @@
 #TODO: add check that source doesn't contain any untracked files
 if(CPACK_SOURCE_PACKAGE_FILE_NAME) #building source package
     get_filename_component(CMAKE_BINARY_DIR ${CPACK_OUTPUT_CONFIG_FILE} PATH)
-    if(NOT EXISTS "${CMAKE_BINARY_DIR}/man/man1/ngmx.1")
-        message(FATAL_ERROR 
-            "To create a complete source package all man pages need to be generated."
-            "The man pages are automatically built together with the binaries. "
-            "Make sure to build all binaries (e.g. GMX_X11=on).")
+    if(NOT EXISTS "${CMAKE_BINARY_DIR}/share/man/man1/gmx-view.1")
+        message(FATAL_ERROR
+            "To create a complete source package all man pages need to be generated. "
+            "You need to run 'make man' or set GMX_BUILD_MANPAGES=ON to get "
+            "them automatically built together with the binaries.")
     endif()
 endif()