]> source.dussan.org Git - tigervnc.git/commitdiff
Only show pwquality setting where relevant
authorPierre Ossman <ossman@cendio.se>
Thu, 15 Aug 2024 12:21:06 +0000 (14:21 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 15 Aug 2024 12:21:06 +0000 (14:21 +0200)
It's not used for Windows or macOS builds, so don't show the setting
there.

CMakeLists.txt

index b57b5e61b828b1683bd536ed5ddb5e248d42d329..3d566f1ea9aac7d60679f6b2e926ccdf6fcf428e 100644 (file)
@@ -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)