mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 16:17:51 +08:00
[vcpkg] Fix [boost] find_package for MSVC2013 / v120 (#10670)
* Fix [boost] find_package for MSVC2013 / v120 added conditional set(Boost_COMPILER "-vc120") to vcpkg.cmake * fixed spacing * fixed spaces
This commit is contained in:
parent
8797e9b0f9
commit
0e08105aa9
@ -401,7 +401,11 @@ macro(${VCPKG_OVERRIDE_FIND_PACKAGE_NAME} name)
|
|||||||
unset(Boost_USE_STATIC_RUNTIME)
|
unset(Boost_USE_STATIC_RUNTIME)
|
||||||
set(Boost_NO_BOOST_CMAKE ON)
|
set(Boost_NO_BOOST_CMAKE ON)
|
||||||
unset(Boost_USE_STATIC_RUNTIME CACHE)
|
unset(Boost_USE_STATIC_RUNTIME CACHE)
|
||||||
set(Boost_COMPILER "-vc140")
|
if("${CMAKE_VS_PLATFORM_TOOLSET}" STREQUAL "v120")
|
||||||
|
set(Boost_COMPILER "-vc120")
|
||||||
|
else()
|
||||||
|
set(Boost_COMPILER "-vc140")
|
||||||
|
endif()
|
||||||
_find_package(${ARGV})
|
_find_package(${ARGV})
|
||||||
elseif("${name}" STREQUAL "ICU" AND EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/unicode/utf.h")
|
elseif("${name}" STREQUAL "ICU" AND EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/unicode/utf.h")
|
||||||
function(_vcpkg_find_in_list)
|
function(_vcpkg_find_in_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user