aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-07-28 11:44:54 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-07-28 11:45:06 -0700
commit63454f618996baefef3f60f90767cd4c02d7590d (patch)
treecaa3984071104aca076247ba263c3e30ca0d4ae9 /scripts
parent313cd65ecde421383ab54beeb00ea653ec143677 (diff)
downloadvcpkg-63454f618996baefef3f60f90767cd4c02d7590d.tar.gz
vcpkg-63454f618996baefef3f60f90767cd4c02d7590d.zip
[vcpkg-cmake] Always search for dynamic boost libraries
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/vcpkg.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index 41bdb3e60..8fd08ffb6 100644
--- a/scripts/buildsystems/vcpkg.cmake
+++ b/scripts/buildsystems/vcpkg.cmake
@@ -138,6 +138,13 @@ if(NOT VCPKG_TOOLCHAIN)
endif()
endfunction()
+ function(find_package name)
+ if(name STREQUAL "Boost")
+ unset(Boost_USE_STATIC_LIBS)
+ endif()
+ _find_package(${ARGV})
+ endfunction()
+
set(VCPKG_TOOLCHAIN ON)
endif()