forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move most options to *.cmake fragment files (trilinos#482, trilinos#158)
I did a few things here: * Got rid of Trilinos_ENABLE_CI_TEST_MODE out of cmake/CallbackSetupExtraOptions.cmake and moved all of those options to BasicCiTestingSettings.cmake * Moved the majority of options for the MPI_RELEASE_DEBUG_SHARED build (changed name to MPI_RELEASE_DEBUG_SHARED_PT) from project-checkin-test-config.py to MpiReleaseDebugSharedPtSettings.cmake and then update project-checkin-test-config.py build MPI_RELEASE_DEBUG_SHARED_PT to just point to these *.cmake fragement files * Moved MPI_RELESE_DEBUG_SHARED_PTR_COMPLEX to project-checkin-test-config.py but don't call it by default in checkin-test-sems.sh (i.e. --default-builds=MPI_DEBUG_RELEASE_SHARED_PT) * Got rid of commented-out stuff from SEMSDevEnv.cmake (now it only contains system stuff)
- Loading branch information
1 parent
75d8c90
commit 431ca0f
Showing
6 changed files
with
87 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Helper function | ||
MACRO(TRIL_SET_BOOL_CACHE_VAR_FOR_CI VAR_NAME VAR_VALUE) | ||
IF ("${${VAR_NAME}}" STREQUAL "") | ||
MESSAGE("-- " "Setting ${VAR_NAME}='${VAR_VALUE}' by default for CI testing") | ||
SET(${VAR_NAME} ${VAR_VALUE} CACHE BOOL | ||
"Set in BasicCiTestingSettings.cmake") | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
# Disable a bunch of TPLs that are not to be enabled in CI testing (since | ||
# the SEMS env does not have them). | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_GLM OFF) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_Matio OFF) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_X11 OFF) | ||
|
||
# Default enable the TPLs that SEMS provides | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_Pthread ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_BLAS ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_LAPACK ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_Boost ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_BoostLib ON) | ||
IF (TPL_ENABLE_MPI) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_ParMETIS ON) | ||
ENDIF() | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_Zlib ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_HDF5 ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_Netcdf ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(TPL_ENABLE_SuperLU ON) | ||
|
||
# Disable long-failing Pir test until it can be fixed (#826) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_CI(Piro_EpetraSolver_MPI_4_DISABLE ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Helper function | ||
MACRO(TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD VAR_NAME VAR_VALUE) | ||
IF ("${${VAR_NAME}}" STREQUAL "") | ||
MESSAGE("-- " "Setting ${VAR_NAME}='${VAR_VALUE}' by default for standard PT CI build") | ||
SET(${VAR_NAME} ${VAR_VALUE} CACHE BOOL | ||
"Set in MpiReleaseDebugSharedPtSettings.cmake") | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(TPL_ENABLE_MPI ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(CMAKE_BUILD_TYPE RELEASE) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_DEBUG ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(BUILD_SHARED_LIBS ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_DEBUG_SYMBOLS ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_EXPLICIT_INSTANTIATION ON) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_SECONDARY_TESTED_CODE OFF) | ||
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Teuchos_ENABLE_DEFAULT_STACKTRACE OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters