Merge branch release-4-6 into master
[alexxy/gromacs.git] / CPackInit.cmake
1 #TODO: add check that source doesn't contain any untracked files
2 if(CPACK_SOURCE_PACKAGE_FILE_NAME) #building source package
3     get_filename_component(CMAKE_BINARY_DIR ${CPACK_OUTPUT_CONFIG_FILE} PATH)
4     if(NOT EXISTS "${CMAKE_BINARY_DIR}/share/man/man1/gmx-view.1")
5         message(FATAL_ERROR
6             "To create a complete source package all man pages need to be generated. "
7             "You need to run 'make man' or set GMX_BUILD_MANPAGES=ON to get "
8             "them automatically built together with the binaries.")
9     endif()
10 endif()