diff --git a/AI/CMakeLists.txt b/AI/CMakeLists.txt index dae6ccf1d..3b286b8f4 100644 --- a/AI/CMakeLists.txt +++ b/AI/CMakeLists.txt @@ -8,14 +8,6 @@ else() option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF) endif() -if(ENABLE_NULLKILLER_AI) - find_package(TBB REQUIRED) - if(MSVC) - install_vcpkg_imported_tgt(TBB::tbb) - endif() -endif() - - if(NOT FORCE_BUNDLED_FL) find_package(fuzzylite) else() diff --git a/CMakeLists.txt b/CMakeLists.txt index cb3e3930f..355c8f67b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -320,6 +320,13 @@ if(ENABLE_LAUNCHER OR ENABLE_EDITOR) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Network) endif() +if(ENABLE_NULLKILLER_AI) + find_package(TBB REQUIRED) + if(MSVC) + install_vcpkg_imported_tgt(TBB::tbb) + endif() +endif() + if(ENABLE_LUA) find_package(luajit) # MXE paths hardcoded for current dependencies pack - tried and could not make it work another way