1
0

vcpkg-cmake-wrapper.cmake 697 B

123456789101112
  1. find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include" NO_DEFAULT_PATH)
  2. find_library(ZLIB_LIBRARY_RELEASE NAMES zlib z PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH)
  3. find_library(ZLIB_LIBRARY_DEBUG NAMES zlibd z PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH)
  4. if(NOT ZLIB_INCLUDE_DIR OR NOT (ZLIB_LIBRARY_RELEASE OR ZLIB_LIBRARY_DEBUG))
  5. message(FATAL_ERROR "Broken installation of vcpkg port zlib")
  6. endif()
  7. if(CMAKE_VERSION VERSION_LESS 3.4)
  8. include(SelectLibraryConfigurations)
  9. select_library_configurations(ZLIB)
  10. unset(ZLIB_FOUND)
  11. endif()
  12. _find_package(${ARGS})