rol/CMakeLists.txt bug
Created by: jmgate
Just ran into a problem trying to configure Trilinos: When you don't have -D Trilinos_ENABLE_DEBUG:BOOL=ON
or OFF
in your config script, @trilinos/rol's CMakeLists.txt
file runs into a problem with
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_DEBUG
HAVE_ROL_DEBUG
"Enable a host of runtime debug checking."
${Trilinos_ENABLE_DEBUG}
)
because ${Trilinos_ENABLE_DEBUG}
is empty, and TRIBITS_ADD_OPTION_AND_DEFINE
therefore isn't getting the correct number of arguments. The quick fix was to add -D Trilinos_ENABLE_DEBUG:BOOL=OFF
to my config script, but it seems like this CMakeLists.txt
file should be more robust than that. You may be able to replace ${Trilinos_ENABLE_DEBUG}
with ${${PROJECT_NAME}_ENABLE_DEBUG}
, and things would just work, or you could check to make sure that last argument to TRIBITS_ADD_OPTION_AND_DEFINE
is empty and replace it with OFF
if it is.
Alternatively, this may be entirely user error—@trilinos/framework, does -D Trilinos_ENABLE_DEBUG=?
need to be specified? If so, my mistake.