Make it possible to disable an engine again after enabling it, without having to delete the CMake cache
This commit is contained in:
parent
7a449a545c
commit
ed49a0b422
|
@ -43,6 +43,7 @@ macro(add_engine engine lib_list src_list moc_list supported)
|
|||
|
||||
# add to list of disabled engines
|
||||
set(ENGINES_DISABLED "${ENGINES_DISABLED} ${engine}")
|
||||
set("HAVE_${name}" 0 CACHE INTERNAL ${name})
|
||||
|
||||
endif(ENGINE_${name}_ENABLED AND NOT ENGINE_${name}_LIB_MISSING)
|
||||
|
||||
|
|
Loading…
Reference in New Issue