diff --git a/CMakeLists.txt b/CMakeLists.txt index 350d9e2d11c..80c94aab32c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,11 +162,10 @@ option(SECURITY "Activate security" OFF) if(SECURITY) find_package(OpenSSL REQUIRED) - find_package(LibP11 REQUIRED) else() find_package(OpenSSL) - find_package(LibP11) endif() +find_package(LibP11) if(OPENSSL_FOUND) message(STATUS "OpenSSL library ${OPENSSL_VERSION} found...")