Make it possible to disable an engine again after enabling it, without having to delete the CMake cache

This commit is contained in:
David Sansome 2010-06-08 15:51:17 +00:00
parent 7a449a545c
commit ed49a0b422
1 changed files with 1 additions and 0 deletions

View File

@ -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)