Răsfoiți Sursa

Move find_package for TBB on top for consistency with other

Hennadii Chernyshchyk 2 ani în urmă
părinte
comite
3322ad9501
2 a modificat fișierele cu 7 adăugiri și 8 ștergeri
  1. 0 8
      AI/CMakeLists.txt
  2. 7 0
      CMakeLists.txt

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

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