浏览代码

Add TBB in conanfile and CMakeLists

Simeon Manolov 1 年之前
父节点
当前提交
41a19bcdf3
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      AI/BattleAI/CMakeLists.txt
  2. 1 1
      conanfile.py

+ 2 - 0
AI/BattleAI/CMakeLists.txt

@@ -24,6 +24,8 @@ set(battleAI_HEADERS
 		BattleExchangeVariant.h
 )
 
+find_package(TBB REQUIRED)
+
 if(NOT ENABLE_STATIC_LIBS)
 	list(APPEND battleAI_SRCS main.cpp StdInc.cpp)
 endif()

+ 1 - 1
conanfile.py

@@ -19,9 +19,9 @@ class VCMI(ConanFile):
         "sdl_image/[~2.0.5]",
         "sdl_mixer/[~2.0.4]",
         "sdl_ttf/[~2.0.18]",
+        "onetbb/[^2021.3]",
     ]
     _nullkillerAIRequires = [
-        "onetbb/[^2021.3]",
     ]
     requires = _libRequires + _clientRequires + _nullkillerAIRequires