File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,10 @@ function (_import_bson)
140
140
set (ENABLE_SNAPPY OFF CACHE BOOL "Toggle snappy for the mongoc subproject (not required by libmongocrypt)" )
141
141
# Disable deprecated automatic init and cleanup. (May be overridden by the user)
142
142
set (ENABLE_AUTOMATIC_INIT_AND_CLEANUP OFF CACHE BOOL "Enable automatic init and cleanup (GCC only)" )
143
- # Disable over-alignment of bson types. (May be overridden by the user)
144
- set (ENABLE_EXTRA_ALIGNMENT ${_extra_alignment_default} CACHE BOOL "Toggle extra alignment of bson_t" )
143
+ if (DEFINED _extra_alignment_default )
144
+ # Disable over-alignment of bson types. (May be overridden by the user)
145
+ set (ENABLE_EXTRA_ALIGNMENT ${_extra_alignment_default} CACHE BOOL "Toggle extra alignment of bson_t" )
146
+ endif ()
145
147
# We don't want the subproject to find libmongocrypt
146
148
set (ENABLE_CLIENT_SIDE_ENCRYPTION OFF CACHE BOOL "Disable client-side encryption for the libmongoc subproject" )
147
149
# Clear `BUILD_VERSION` so C driver does not use a `BUILD_VERSION` meant for libmongocrypt.
You can’t perform that action at this time.
0 commit comments