if (NOT GMX_USE_RELATIVE_INSTALL_PATH)
set(CPACK_SET_DESTDIR "ON")
endif()
-set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_SOURCE_DIR}/admin/InstallWelcome.txt")
# Its GPL/LGPL, so they do not have to agree to a license for mere usage, but some installers require this...
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/admin/InstallLicense.txt")
add_subdirectory(share)
add_subdirectory(include)
-add_subdirectory(man)
add_subdirectory(src)
add_subdirectory(scripts)
message(FATAL_ERROR
"To generate correct source package all man pages need to be generated. "
"The man pages are automatically build together with the binaries. "
- "Make sure to build all binaries (e.g. GMX_X11=on). ${CMAKE_SOURCE_DIR}/man/man1/ngmx.1")
+ "Make sure to build all binaries (e.g. GMX_X11=on).")
endif()
configure_file(${CMAKE_SOURCE_DIR}/man/man7/gromacs.7.cmakein ${CMAKE_BINARY_DIR}/man/man7/gromacs.7)
install(FILES ${CMAKE_BINARY_DIR}/man/man7/gromacs.7 DESTINATION
${MAN_INSTALL_DIR}/man7)
+#man-pages are only avalaible if they are either build or this is a source archive
+elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/admin/.isreposource")
+ install(FILES ${CMAKE_SOURCE_DIR}/man/man7/gromacs.7 DESTINATION
+ ${MAN_INSTALL_DIR}/man7)
endif()
function (gmx_add_man_page EXENAME)
-P ${CMAKE_SOURCE_DIR}/cmake/Filter.cmake)
install(FILES ${MAN1_PATH}/${EXENAME}.1 DESTINATION
${MAN_INSTALL_DIR}/man1)
+ elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/admin/.isreposource")
+ install(FILES ${CMAKE_SOURCE_DIR}/man/man1/${EXENAME}.1 DESTINATION
+ ${MAN_INSTALL_DIR}/man1)
endif()
endfunction ()
+++ /dev/null
-# Man pages: Nothing to build, just installation
-install(DIRECTORY . DESTINATION ${MAN_INSTALL_DIR}
- COMPONENT data
- PATTERN "Makefile*" EXCLUDE
- PATTERN "CMake*" EXCLUDE
- PATTERN "cmake*" EXCLUDE
- PATTERN "*~" EXCLUDE
-)
bNoSolvOpt = TRUE;
}
- if( (getenv("GMX_DISABLE_ACCELERATION") != NULL) || (getenv("GMX_NOOPTIMIZEDKERNELS") != NULL) )
+ if (getenv("GMX_DISABLE_ACCELERATION") != NULL)
{
fr->use_acceleration = FALSE;
if (fp != NULL)
fr->bcoultab = (!(fr->eeltype == eelCUT || EEL_RF(fr->eeltype)) ||
fr->eeltype == eelRF_ZERO);
- if (getenv("GMX_FORCE_TABLES"))
+ if (getenv("GMX_REQUIRE_TABLES"))
{
fr->bvdwtab = TRUE;
fr->bcoultab = TRUE;
int nshell; /* The number of local shells */
t_shell *shell; /* The local shells */
int shell_nalloc; /* The allocation size of shell */
- gmx_bool bPredict; /* Predict shell positions */
- gmx_bool bForceInit; /* Force initialization of shell positions */
+ gmx_bool bPredict; /* Predict shell positions */
+ gmx_bool bRequireInit; /* Require initialization of shell positions */
int nflexcon; /* The number of flexible constraints */
rvec *x[2]; /* Array for iterative minimization */
rvec *f[2]; /* Array for iterative minimization */
shfc->shell_index_gl = shell_index;
shfc->bPredict = (getenv("GMX_NOPREDICT") == NULL);
- shfc->bForceInit = FALSE;
+ shfc->bRequireInit = FALSE;
if (!shfc->bPredict) {
if (fplog)
fprintf(fplog,"\nWill never predict shell positions\n");
} else {
- shfc->bForceInit = (getenv("GMX_FORCEINIT") != NULL);
- if (shfc->bForceInit && fplog)
+ shfc->bRequireInit = (getenv("GMX_REQUIRE_SHELL_INIT") != NULL);
+ if (shfc->bRequireInit && fplog)
fprintf(fplog,"\nWill always initiate shell positions\n");
}
#define Try (1-Min) /* At start Try = 1 */
bCont = (mdstep == inputrec->init_step) && inputrec->bContinuation;
- bInit = (mdstep == inputrec->init_step) || shfc->bForceInit;
+ bInit = (mdstep == inputrec->init_step) || shfc->bRequireInit;
ftol = inputrec->em_tol;
number_steps = inputrec->niter;
nshell = shfc->nshell;