mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:49:05 +08:00
7dbc05515b
* Format manifest * Add cmake wrapper * x-add-version * Always use vcpkg zlib for sentry native * x-add-version * Fix and simplify wrapper * Update git-tree
14 lines
698 B
CMake
14 lines
698 B
CMake
set(ZLIB_ROOT "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}")
|
|
find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS "${ZLIB_ROOT}/include" NO_DEFAULT_PATH)
|
|
find_library(ZLIB_LIBRARY_RELEASE NAMES zlib z PATHS "${ZLIB_ROOT}/lib" NO_DEFAULT_PATH)
|
|
find_library(ZLIB_LIBRARY_DEBUG NAMES zlibd z PATHS "${ZLIB_ROOT}/debug/lib" NO_DEFAULT_PATH)
|
|
if(NOT ZLIB_INCLUDE_DIR OR NOT ZLIB_LIBRARY_RELEASE OR (NOT ZLIB_LIBRARY_DEBUG AND EXISTS "${ZLIB_ROOT}/debug/lib"))
|
|
message("Broken installation of vcpkg port zlib")
|
|
endif()
|
|
if(CMAKE_VERSION VERSION_LESS 3.4)
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(ZLIB)
|
|
unset(ZLIB_FOUND)
|
|
endif()
|
|
_find_package(${ARGS})
|