diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/czmq/Finduuid.cmake | |
Diffstat (limited to 'vcpkg/ports/czmq/Finduuid.cmake')
| -rw-r--r-- | vcpkg/ports/czmq/Finduuid.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/czmq/Finduuid.cmake b/vcpkg/ports/czmq/Finduuid.cmake new file mode 100644 index 0000000..96e61e0 --- /dev/null +++ b/vcpkg/ports/czmq/Finduuid.cmake @@ -0,0 +1,35 @@ +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() |