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:
parent
609f089764
commit
a1348978e6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user