Merge remote-tracking branch 'origin/release-4-6' into HEAD
[alexxy/gromacs.git] / CPackInit.cmake
1 #TODO: add check that source doesn't contain any untracked files
2 get_filename_component(CMAKE_BINARY_DIR ${CPACK_OUTPUT_CONFIG_FILE} PATH)
3 if(CPACK_SOURCE_PACKAGE_FILE_NAME AND NOT EXISTS "${CMAKE_BINARY_DIR}/man/man1/ngmx.1")
4     message(FATAL_ERROR 
5         "To generate correct source package all man pages need to be generated. "
6         "The man pages are automatically build together with the binaries. "
7         "Make sure to build all binaries (e.g. GMX_X11=on).")
8 endif()