diff --git a/AI/CMakeLists.txt b/AI/CMakeLists.txt index 3b286b8f4..8e97d6aff 100644 --- a/AI/CMakeLists.txt +++ b/AI/CMakeLists.txt @@ -8,6 +8,11 @@ else() option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF) endif() +if(TBB_FOUND AND MSVC) + install_vcpkg_imported_tgt(TBB::tbb) +endif() + + if(NOT FORCE_BUNDLED_FL) find_package(fuzzylite) else() diff --git a/CMakeLists.txt b/CMakeLists.txt index 355c8f67b..7d325ba04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -322,9 +322,6 @@ endif() if(ENABLE_NULLKILLER_AI) find_package(TBB REQUIRED) - if(MSVC) - install_vcpkg_imported_tgt(TBB::tbb) - endif() endif() if(ENABLE_LUA)