vcpkg/ports/blosc/FindBlosc.cmake
Elijah Insua 644caf17e7 [blosc] enable dependent ports to use debug builds
refs: https://github.com/Microsoft/vcpkg/issues/3601

The bulk of this work is to utilize the standard vcpkg find_package
code to find the correct binaries in both Release and Debug modes.
2019-08-13 16:23:48 -07:00

34 lines
641 B
CMake

include(FindPackageHandleStandardArgs)
find_path(
BLOSC_INCLUDE_DIRS
blosc.h
)
get_filename_component(_prefix_path ${BLOSC_INCLUDE_DIRS} PATH)
find_library(
BLOSC_LIBRARY_DEBUG
NAMES blosc
PATHS ${_prefix_path}/debug/lib
NO_DEFAULT_PATH
)
find_library(
SNAPPY_LIBRARY_RELEASE
NAMES blosc
PATHS ${_prefix_path}/lib
NO_DEFAULT_PATH
)
unset(_prefix_path)
include(SelectLibraryConfigurations)
select_library_configurations(blosc)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
blosc
REQUIRED_VARS BLOSC_LIBRARIES BLOSC_INCLUDE_DIRS
)