X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=d3e6720c424f9885ce37444056127471e69db310;hb=b3ae494f455717ff3af6c25c1cb4b3fb86759373;hp=28faeb375a5f8afea0ce8ec6288b05daf09e3c45;hpb=80c60b9374efdb883ac53877746348a0531f0ea5;p=alexxy%2Fgromacs.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 28faeb375a..d3e6720c42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -705,9 +705,7 @@ endif() option(GMX_BUILD_HELP "Build man pages, HTML help, and completions automatically (requires that compiled binaries can be executed on the build host)" OFF) mark_as_advanced(GMX_BUILD_HELP) -if (GMX_BUILD_HELP AND SOURCE_IS_SOURCE_DISTRIBUTION AND - "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - +if (GMX_BUILD_HELP AND SOURCE_IS_SOURCE_DISTRIBUTION AND BUILD_IS_INSOURCE) message(FATAL_ERROR "Rebuilding HTML and man pages is not supported for in-source " "builds from a source distribution. "