mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Correcting suggested CMake variable names
This commit is contained in:
parent
9abbff92c0
commit
97236d7c56
1 changed files with 6 additions and 1 deletions
|
|
@ -41,9 +41,14 @@ option(OPENMC_USE_MPI "Enable MPI"
|
|||
foreach(OLD_OPT IN ITEMS "openmp" "profile" "coverage" "dagmc" "libmesh")
|
||||
if(DEFINED ${OLD_OPT})
|
||||
string(TOUPPER ${OLD_OPT} OPT_UPPER)
|
||||
if ("${OLD_OPT}" STREQUAL "profile" OR "${OLD_OPT}" STREQUAL "coverage")
|
||||
set(NEW_OPT_PREFIX "OPENMC_ENABLE")
|
||||
else()
|
||||
set(NEW_OPT_PREFIX "OPENMC_USE")
|
||||
endif()
|
||||
message(WARNING "The OpenMC CMake option '${OLD_OPT}' has been deprecated. "
|
||||
"Its value will be ignored. "
|
||||
"Please use '-DOPENMC_USE_${OPT_UPPER}=${${OLD_OPT}}' instead.")
|
||||
"Please use '-D${NEW_OPT_PREFIX}_${OPT_UPPER}=${${OLD_OPT}}' instead.")
|
||||
unset(${OLD_OPT} CACHE)
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue