# sub-directory 'libbson' was already included at the top-level # sub-directory 'libmongoc' was already included at the top-level # sub-directory 'kms-message' was already included at the top-level # Copy zconf.h.in to zconf.h, used by zlib configure_file ( "${mongo-c-driver_SOURCE_DIR}/src/zlib-1.3.1/zconf.h.in" "${CMAKE_BINARY_DIR}/src/zlib-1.3.1/zconf.h" COPYONLY ) if (CMAKE_CXX_COMPILER) # Add a C++ source file that will #include the main C headers. This "library" # does nothing other than validate that the C headers are valid C++ headers. add_library (mongoc-cxx-check OBJECT cpp-check.cpp) if (TARGET mongoc::static) target_link_libraries (mongoc-cxx-check PRIVATE mongoc::static) else () target_link_libraries (mongoc-cxx-check PRIVATE mongoc::shared) endif () endif () # public-header-warnings add_executable(public-header-warnings EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/c-check.c) if (TARGET mongoc::static) target_link_libraries(public-header-warnings PRIVATE mongoc::static) else () target_link_libraries(public-header-warnings PRIVATE mongoc::shared) endif () target_compile_options(public-header-warnings PRIVATE $<$:-Weverything> $<$:-Wextra> $<$:-Werror> $<$:-Wno-declaration-after-statement> $<$:-Wno-disabled-macro-expansion> $<$:-Wno-c++98-compat-pedantic> $<$:-Wno-pre-c2x-compat> $<$:-Wno-unsafe-buffer-usage> $<$:-Wno-padded> $<$:-Wno-reserved-identifier> $<$:-Wno-documentation-unknown-command> $<$:-Wno-unknown-warning-option> $<$:/W4> $<$:/WX> $<$:/wd4324> )