diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-11-24 11:36:29 -0800 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-11-24 11:36:29 -0800 |
| commit | d5365298d26b33ccb490bc7f8af936c67394e045 (patch) | |
| tree | de513707b8bb287e6743066e58bfaf5a32cfab95 /src | |
| parent | 30bf63b4b885f1c6d7fb544c8ad1cdfcddd4cec5 (diff) | |
| parent | 2d20bfd7ac211eb2250474d5db7ed8452dd22543 (diff) | |
| download | monzero-gui-d5365298d26b33ccb490bc7f8af936c67394e045.tar.gz monzero-gui-d5365298d26b33ccb490bc7f8af936c67394e045.tar.xz monzero-gui-d5365298d26b33ccb490bc7f8af936c67394e045.zip | |
Merge pull request #3244
2d20bfd7 cmake: find libgcrypt include directory (xiphon)
Diffstat (limited to 'src')
| -rw-r--r-- | src/openpgp/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openpgp/CMakeLists.txt b/src/openpgp/CMakeLists.txt index a5a36ee7..f83162da 100644 --- a/src/openpgp/CMakeLists.txt +++ b/src/openpgp/CMakeLists.txt @@ -1,8 +1,10 @@ file(GLOB_RECURSE SOURCES *.cpp) file(GLOB_RECURSE HEADERS *.h) -find_library(GCRYPT_LIBRARY gcrypt) -find_library(GPG_ERROR_LIBRARY gpg-error) +find_library(GCRYPT_LIBRARY gcrypt REQUIRED) +find_path(GCRYPT_INCLUDE_DIR gcrypt.h REQUIRED) + +find_library(GPG_ERROR_LIBRARY gpg-error REQUIRED) add_library(openpgp ${SOURCES} @@ -10,7 +12,8 @@ add_library(openpgp target_include_directories(openpgp PUBLIC - ${CMAKE_SOURCE_DIR}/monero/contrib/epee/include) + ${CMAKE_SOURCE_DIR}/monero/contrib/epee/include + ${GCRYPT_INCLUDE_DIR}) target_link_libraries(openpgp PUBLIC |
