vcpkg/ports/czmq/Finduuid.cmake
myd7349 9624235c56
[czmq] Update to v4.2.1 (#17989)
* [czmq] Update to 4.2.1

* [czmq] vcpkg x-add-version czmq

* [czmq] Quote paths

* [czmq] Overwrite version

* [czmq] Fix curl winldap linkage when built as static library

* [czmq] Overwrite version

* [czmq] Fix dependencies

* [czmq] Overwrite version

* [czmq] Modernize

* [czmq] Overwrite version
2021-07-15 14:55:58 -07:00

36 lines
637 B
CMake

find_path(
UUID_INCLUDE_DIR
NAMES uuid/uuid.h
)
get_filename_component(_prefix_path ${UUID_INCLUDE_DIR} PATH)
find_library(
UUID_LIBRARY_DEBUG
NAMES uuid
PATHS ${_prefix_path}/debug/lib
NO_DEFAULT_PATH
)
find_library(
UUID_LIBRARY_RELEASE
NAMES uuid
PATHS ${_prefix_path}/lib
NO_DEFAULT_PATH
)
unset(_prefix_path)
include(SelectLibraryConfigurations)
select_library_configurations(UUID)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
UUID
REQUIRED_VARS UUID_LIBRARY UUID_INCLUDE_DIR
)
if(UUID_FOUND)
set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
endif()