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