Skip to content

Commit fd32708

Browse files
committed
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.
1 parent 3f67c21 commit fd32708

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/modules/SearchInstalledSoftware.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,8 +1384,7 @@ endif()
13841384

13851385
#---TMVA and its dependencies------------------------------------------------------------
13861386
if (tmva AND NOT mlp)
1387-
message(STATUS "TMVA is enabled while MLP is not: disabling TMVA")
1388-
set(tmva OFF CACHE BOOL "Disabled because mlp was not activated" FORCE)
1387+
message(FATAL_ERROR "The 'tmva' option requires 'mlp', please enable mlp with -Dmlp=ON")
13891388
endif()
13901389

13911390
if(tmva)

0 commit comments

Comments
 (0)