Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
zyre/Findlibsodium.cmake
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (41 sloc)
1.73 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # | |
# Please refer to the README for information about making permanent changes. # | |
################################################################################ | |
if (NOT MSVC) | |
include(FindPkgConfig) | |
pkg_check_modules(PC_LIBSODIUM "libsodium") | |
if (NOT PC_LIBSODIUM_FOUND) | |
pkg_check_modules(PC_LIBSODIUM "libsodium") | |
endif (NOT PC_LIBSODIUM_FOUND) | |
if (PC_LIBSODIUM_FOUND) | |
# some libraries install the headers is a subdirectory of the include dir | |
# returned by pkg-config, so use a wildcard match to improve chances of finding | |
# headers and SOs. | |
set(PC_LIBSODIUM_INCLUDE_HINTS ${PC_LIBSODIUM_INCLUDE_DIRS} ${PC_LIBSODIUM_INCLUDE_DIRS}/*) | |
set(PC_LIBSODIUM_LIBRARY_HINTS ${PC_LIBSODIUM_LIBRARY_DIRS} ${PC_LIBSODIUM_LIBRARY_DIRS}/*) | |
endif(PC_LIBSODIUM_FOUND) | |
endif (NOT MSVC) | |
find_path ( | |
LIBSODIUM_INCLUDE_DIRS | |
NAMES sodium.h | |
HINTS ${PC_LIBSODIUM_INCLUDE_HINTS} | |
) | |
find_library ( | |
LIBSODIUM_LIBRARIES | |
NAMES sodium | |
HINTS ${PC_LIBSODIUM_LIBRARY_HINTS} | |
) | |
include(FindPackageHandleStandardArgs) | |
find_package_handle_standard_args( | |
LIBSODIUM | |
REQUIRED_VARS LIBSODIUM_LIBRARIES LIBSODIUM_INCLUDE_DIRS | |
) | |
mark_as_advanced( | |
LIBSODIUM_FOUND | |
LIBSODIUM_LIBRARIES LIBSODIUM_INCLUDE_DIRS | |
) | |
################################################################################ | |
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # | |
# Please refer to the README for information about making permanent changes. # | |
################################################################################ |