Reset settings to find boost libraries

Reset the settings to find the boost libraries that installed by vcpkg.
vcpkg will always rename to Boost libraries name that able to be find
with default settings of FindBoost.cmake.
This commit is contained in:
Tsukasa Sugiura 2017-11-06 04:33:35 +09:00
parent 330b8d8bab
commit 07e4e674f0

View File

@ -155,6 +155,8 @@ endfunction()
macro(find_package name)
if(name STREQUAL "Boost")
unset(Boost_USE_STATIC_LIBS)
unset(Boost_USE_MULTITHREADED)
unset(Boost_USE_STATIC_RUNTIME)
endif()
_find_package(${ARGV})
endmacro()