@@ -12,6 +12,9 @@ include (MongoSettings)
12
12
# Subcomponents:
13
13
mongo_bool_setting (ENABLE_MONGOC "Enable the build of the mongo-c-driver libraries" )
14
14
mongo_bool_setting (ENABLE_BSON "Enable the build of the C BSON handling libraries" )
15
+ if (ENABLE_BSON STREQUAL "SYSTEM" )
16
+ message (SEND_ERROR "ENABLE_BSON=SYSTEM is no longer supported. Use USE_SYSTEM_LIBBSON=ON instead." )
17
+ endif ()
15
18
16
19
# Static libraries:
17
20
mongo_setting (
@@ -50,7 +53,7 @@ mongo_bool_setting(ENABLE_MAN_PAGES "Build the manual pages" DEFAULT VALUE OFF)
50
53
mongo_bool_setting (ENABLE_HTML_DOCS "Build the HTML documentation" DEFAULT VALUE OFF )
51
54
mongo_bool_setting (ENABLE_UNINSTALL "Generate an 'uninstall' script and an 'uninstall' build target" )
52
55
53
- # Optional features that are ENABLED by default :
56
+ # Optional features that are ENABLED when necessary dependencies are found :
54
57
mongo_setting (ENABLE_SRV "Toggle support for mongodb+srv URIs."
55
58
OPTIONS ON OFF AUTO
56
59
DEFAULT VALUE AUTO )
@@ -64,9 +67,8 @@ mongo_setting(ENABLE_ZLIB "Enable zlib compression support"
64
67
OPTIONS BUNDLED SYSTEM OFF
65
68
DEFAULT VALUE BUNDLED )
66
69
mongo_setting (
67
- ENABLE_SSL [[Enable TLS connection and SCRAM-SHA-1 authentication.
68
- Note that SCRAM-SHA1 is required for authenticating to
69
- MongoDB 3.0 or later.]]
70
+ ENABLE_SSL [[Enable TLS connection and SCRAM authentication. Note that SCRAM
71
+ is required for authenticating to MongoDB 3.0 or later.]]
70
72
OPTIONS WINDOWS DARWIN OPENSSL LIBRESSL OFF AUTO
71
73
DEFAULT VALUE AUTO
72
74
VALIDATE CODE [[
@@ -147,7 +149,7 @@ mongo_bool_setting(
147
149
DEFAULT VALUE OFF
148
150
VALIDATE CODE [[
149
151
if(ENABLE_CRYPTO_SYSTEM_PROFILE AND NOT ENABLE_SSL STREQUAL "OPENSSL")
150
- message(WARNING "ENABLE_CRYPTO_SYSTEM_PROFILE=TRUE is only aplicable when ENABLE_SSL=OPENSSL")
152
+ message(WARNING "ENABLE_CRYPTO_SYSTEM_PROFILE=TRUE is only applicable when ENABLE_SSL=OPENSSL")
151
153
endif()
152
154
]]
153
155
)
@@ -161,7 +163,7 @@ mongo_bool_setting(
161
163
VALIDATE CODE [[
162
164
if(ENABLE_AUTOMATIC_INIT_AND_CLEANUP)
163
165
if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU")
164
- message(WARNING "Automatic init-and-cleanup is only supported on GCC")
166
+ message(WARNING "ENABLE_AUTOMATIC_INIT_AND_CLEANUP is only supported on GCC. ")
165
167
endif()
166
168
message(DEPRECATION
167
169
"Enabling ENABLE_AUTOMATIC_INIT_AND_CLEANUP is deprecated and "
0 commit comments