Skip to content
Snippets Groups Projects
Commit fd32708f authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Do not disable tmva when -Dmlp=OFF, but fail to configure

CMake options specified on the command line should not change their
value during configuration. Only default values are allowed to change
(i.e. ${option}_defvalue not ${option}). See ROOT-9385 for more info.
parent 3f67c219
No related branches found
No related tags found
No related merge requests found
......@@ -1384,8 +1384,7 @@ endif()
#---TMVA and its dependencies------------------------------------------------------------
if (tmva AND NOT mlp)
message(STATUS "TMVA is enabled while MLP is not: disabling TMVA")
set(tmva OFF CACHE BOOL "Disabled because mlp was not activated" FORCE)
message(FATAL_ERROR "The 'tmva' option requires 'mlp', please enable mlp with -Dmlp=ON")
endif()
if(tmva)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment