mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:39:08 +08:00
b5bb1511f0
* [vcpkg] Add VCPKG_HOST_TRIPLET. Improve vcpkg.schema.json * [many ports] Apply host dependencies * [yasm-tool] Revert yasm-tool changes to split into PR #16478 * [many ports] Add versions * [vcpkg.cmake] Revert change applied in other PR * [boost-modular-build-helper] Merge from master Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
17 lines
572 B
CMake
17 lines
572 B
CMake
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
|
|
cmake_policy(PUSH)
|
|
cmake_policy(SET CMP0057 NEW)
|
|
if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS)
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
set(Protobuf_USE_STATIC_LIBS ON)
|
|
else()
|
|
set(Protobuf_USE_STATIC_LIBS OFF)
|
|
endif()
|
|
endif()
|
|
cmake_policy(POP)
|
|
endif()
|
|
|
|
find_program(Protobuf_PROTOC_EXECUTABLE NAMES protoc PATHS "${CMAKE_CURRENT_LIST_DIR}/../../../@HOST_TRIPLET@/tools/protobuf" NO_DEFAULT_PATH)
|
|
|
|
_find_package(${ARGS})
|