From 6f384498d2f6a8e33797697349b00dfd8a985d1e Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Mon, 6 Apr 2020 22:47:15 +0200 Subject: [PATCH] Always pretend to be configured If the user is building libsodium-cmake they probably know it's not the official build. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f42c09..21fc519 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} $<$>:SODIUM_STATIC> $<$:SODIUM_LIBRARY_MINIMAL> PRIVATE + CONFIGURED $<$:SODIUM_DLL_EXPORT> $<$:USE_BLOCKING_RANDOM> $<$:MINIMAL> - $<$:CONFIGURED> ) # Variables that need to be exported to version.h.in