aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2025-07-16 16:49:14 +0200
committerPierre Ossman <ossman@cendio.se>2025-07-16 17:14:16 +0200
commit4d83db281b4404e0a876358c6db6086598c7a44b (patch)
treea1c483e4d61892a435a4389e2c6c3a333d762e1a
parent8f7fbd7c606bc20b03ed6b69fd0692956fbf7f63 (diff)
downloadtigervnc-4d83db281b4404e0a876358c6db6086598c7a44b.tar.gz
tigervnc-4d83db281b4404e0a876358c6db6086598c7a44b.zip
Make pwquality option a tristate
Just like the other options we have that rely on external components.
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f421501..655a3f7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -356,9 +356,13 @@ endif()
# check for password pwquality check support
if(UNIX AND NOT APPLE)
- option(ENABLE_PWQUALITY "Enable password pwquality check" ON)
+ trioption(ENABLE_PWQUALITY "Enable password pwquality check")
if(ENABLE_PWQUALITY)
- find_package(PWQuality)
+ if(ENABLE_PWQUALITY STREQUAL "AUTO")
+ find_package(PWQuality)
+ else()
+ find_package(PWQuality REQUIRED)
+ endif()
if(PWQUALITY_FOUND)
add_definitions(-DHAVE_PWQUALITY)
endif()