From 65938708c0499e6308b35a0e18ce4e834ce71435 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 12 May 2022 10:48:29 +0200 Subject: [PATCH] Fixed WITH_PKCS11 option --- winpr/libwinpr/ncrypt/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/ncrypt/CMakeLists.txt b/winpr/libwinpr/ncrypt/CMakeLists.txt index b96f3d13a..a6f186d83 100644 --- a/winpr/libwinpr/ncrypt/CMakeLists.txt +++ b/winpr/libwinpr/ncrypt/CMakeLists.txt @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -if(WITH_PKCS11 AND NOT WIN32) +if (PKCS11_FOUND) winpr_include_directory_add(${PKCS11_INCLUDE_DIR}) winpr_library_add_public(${PKCS11_LIBRARY}) @@ -37,7 +37,7 @@ if(WITH_PKCS11 AND NOT WIN32) endif() endif() -if (WITH_PKCS11) +if (PKCS11_FOUND) winpr_module_add( ncrypt_pkcs11.c )