Skip to content

Commit

Permalink
MONGOCRYPT-719 resolve CMake warning of non-boolean `ENABLE_EXTRA_ALI…
Browse files Browse the repository at this point in the history
…GNMENT` (#875)
  • Loading branch information
kevinAlbs authored Aug 5, 2024
1 parent d09b342 commit c444613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/ImportBSON.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ function (_import_bson)
set (ENABLE_SNAPPY OFF CACHE BOOL "Toggle snappy for the mongoc subproject (not required by libmongocrypt)")
# Disable deprecated automatic init and cleanup. (May be overridden by the user)
set (ENABLE_AUTOMATIC_INIT_AND_CLEANUP OFF CACHE BOOL "Enable automatic init and cleanup (GCC only)")
# Disable over-alignment of bson types. (May be overridden by the user)
set (ENABLE_EXTRA_ALIGNMENT ${_extra_alignment_default} CACHE BOOL "Toggle extra alignment of bson_t")
if (DEFINED _extra_alignment_default)
# Disable over-alignment of bson types. (May be overridden by the user)
set (ENABLE_EXTRA_ALIGNMENT ${_extra_alignment_default} CACHE BOOL "Toggle extra alignment of bson_t")
endif ()
# We don't want the subproject to find libmongocrypt
set (ENABLE_CLIENT_SIDE_ENCRYPTION OFF CACHE BOOL "Disable client-side encryption for the libmongoc subproject")
# Clear `BUILD_VERSION` so C driver does not use a `BUILD_VERSION` meant for libmongocrypt.
Expand Down

0 comments on commit c444613

Please sign in to comment.