Browse Source

Call install_vcpkg_imported_tgt after initializing BIN_DIR

Call it inside AI/CMakeLists.txt as it was before.
Hennadii Chernyshchyk 2 years ago
parent
commit
d7fbd4aa66
2 changed files with 5 additions and 3 deletions
  1. 5 0
      AI/CMakeLists.txt
  2. 0 3
      CMakeLists.txt

+ 5 - 0
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()

+ 0 - 3
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)