diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 1a6fcf2625..74ba957813 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -294,7 +294,7 @@ if (NOT OPENMW_USE_SYSTEM_ICU) set(ICU_LIBRARIES ICU::i18n ICU::uc ICU::data PARENT_SCOPE) endif() -if ((BUILD_UNITTESTS OR BUILD_OPENCS_TESTS) AND NOT OPENMW_USE_SYSTEM_GOOGLETEST) +if ((BUILD_COMPONENTS_TESTS OR BUILD_OPENCS_TESTS OR BUILD_OPENMW_TESTS) AND NOT OPENMW_USE_SYSTEM_GOOGLETEST) include(FetchContent) FetchContent_Declare(googletest