Always pretend to be configured
If the user is building libsodium-cmake they probably know it's not the official build.
This commit is contained in:
@@ -9,7 +9,6 @@ project("sodium")
|
||||
option(SODIUM_DISABLE_TESTS "Disable tests" OFF)
|
||||
option(SODIUM_MINIMAL "Only compile the minimum set of functions required for the high-level API" OFF)
|
||||
option(SODIUM_ENABLE_BLOCKING_RANDOM "Enable this switch only if /dev/urandom is totally broken on the target platform" OFF)
|
||||
option(SODIUM_PRETEND_TO_BE_CONFIGURED "Silence warnings about build system not being properly configured" OFF)
|
||||
|
||||
add_library(${PROJECT_NAME}
|
||||
libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c
|
||||
@@ -274,10 +273,10 @@ target_compile_definitions(${PROJECT_NAME}
|
||||
$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:SODIUM_STATIC>
|
||||
$<$<BOOL:${SODIUM_MINIMAL}>:SODIUM_LIBRARY_MINIMAL>
|
||||
PRIVATE
|
||||
CONFIGURED
|
||||
$<$<BOOL:${BUILD_SHARED_LIBS}>:SODIUM_DLL_EXPORT>
|
||||
$<$<BOOL:${SODIUM_ENABLE_BLOCKING_RANDOM}>:USE_BLOCKING_RANDOM>
|
||||
$<$<BOOL:${SODIUM_MINIMAL}>:MINIMAL>
|
||||
$<$<BOOL:${SODIUM_PRETEND_TO_BE_CONFIGURED}>:CONFIGURED>
|
||||
)
|
||||
|
||||
# Variables that need to be exported to version.h.in
|
||||
|
||||
Reference in New Issue
Block a user