1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

build: do not define the sodium target when not found by CMake (#1287)

This commit is contained in:
Amin Yahyaabadi 2023-06-15 04:59:56 -07:00 committed by GitHub
parent 609f089764
commit a1348978e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,10 @@ find_package_handle_standard_args(sodium
VERSION_VAR
sodium_VERSION_STRING)
if (NOT sodium_FOUND)
return()
endif()
# mark file paths as advanced
mark_as_advanced(sodium_INCLUDE_DIR)
mark_as_advanced(sodium_LIBRARY_DEBUG)