[tbb] Build dll for static dependency on Windows (#5430)

* [tbb] Build dll for static dependency on Windows
This commit is contained in:
zhihaoy 2019-02-26 12:45:45 -06:00 committed by Phil Christensen
parent 5251a51ab0
commit d96b462823
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
Source: tbb
Version: 2019_U3
Version: 2019_U3-1
Description: Intel's Threading Building Blocks.

View File

@ -1,7 +1,10 @@
include(vcpkg_common_functions)
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
message("tbb only supports dynamic library linkage")
set(VCPKG_LIBRARY_LINKAGE "dynamic")
endif()
endif()
vcpkg_from_github(