From 315b2012035b2946acd05ac5c8c6c6a1a66237bb Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 15 Aug 2024 14:21:06 +0200 Subject: [PATCH] Only show pwquality setting where relevant It's not used for Windows or macOS builds, so don't show the setting there. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b57b5e61..3d566f1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,9 +337,9 @@ if(UNIX AND NOT APPLE) endif() # check for password pwquality check support -option(ENABLE_PWQUALITY "Enable password pwquality check" ON) -if(ENABLE_PWQUALITY) - if(UNIX) +if(UNIX AND NOT APPLE) + option(ENABLE_PWQUALITY "Enable password pwquality check" ON) + if(ENABLE_PWQUALITY) find_package(PkgConfig) if(PKG_CONFIG_FOUND) pkg_check_modules(PWQUALITY pwquality) -- 2.39.5