mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 02:09:00 +08:00
a051803607
* [plibsys] Fix failures on linux and osx * Update patch for fix build failure with x64-windows-static * Add vcpkg_cmake_wrapper and usage
12 lines
704 B
CMake
12 lines
704 B
CMake
include(FindPackageHandleStandardArgs)
|
|
include(SelectLibraryConfigurations)
|
|
|
|
find_path(PLIBSYS_INCLUDE_DIR NAMES plibsys.h HINTS ${CURRENT_INSTALLED_DIR} PATH_SUFFIXES plibsys)
|
|
|
|
find_library(PLIBSYS_LIBRARY_DEBUG NAMES plibsys plibsysstatic libplibsys NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
|
|
find_library(PLIBSYS_LIBRARY_RELEASE NAMES plibsys plibsysstatic libplibsys NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
|
|
|
|
select_library_configurations(PLIBSYS)
|
|
|
|
set(PLIBSYS_INCLUDE_DIRS ${PLIBSYS_INCLUDE_DIR})
|
|
set(PLIBSYS_LIBRARIES ${PLIBSYS_LIBRARY}) |