$ cmake -G "Visual Studio 11 2012 Win64" -LH -DBUILD_VERSION=1.21.1 -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -DCMAKE_INSTALL_PREFIX=C:/MyTempDir/mongo-c-driver/cmake-VS2012-x64 -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_PREFIX_PATH=C:/MyTempDir/mongo-c-driver/cmake-VS2012-x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_BSON=ON -DENABLE_EXAMPLES=OFF -DENABLE_ICU=OFF -DENABLE_SASL=OFF -DENABLE_SNAPPY=OFF -DENABLE_SSL=OFF -DENABLE_STATIC=ON -DENABLE_TESTS=OFF -DMONGO_USE_LLD=OFF ../ -- The C compiler identification is MSVC 17.0.61030.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Looking for a CXX compiler -- Looking for a CXX compiler - C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe -- The CXX compiler identification is MSVC 17.0.61030.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_LLD_LINKER_SUPPORT -- Performing Test HAVE_LLD_LINKER_SUPPORT - Success storing BUILD_VERSION 1.21.1 in file VERSION_CURRENT for later use -- Build and install static libraries -- Using bundled libbson libbson version (from VERSION_CURRENT file): 1.21.1 -- Looking for snprintf -- Looking for snprintf - not found -- Performing Test BSON_HAVE_TIMESPEC -- Performing Test BSON_HAVE_TIMESPEC - Failed -- no timespec struct -- Looking for gmtime_r -- Looking for gmtime_r - not found -- Looking for rand_r -- Looking for rand_r - not found -- Looking for strings.h -- Looking for strings.h - not found -- Looking for strlcpy -- Looking for strlcpy - not found -- Looking for stdbool.h -- Looking for stdbool.h - not found -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE CMake Warning at CMakeLists.txt:345 (message): MS Visual Studio too old for ENABLE_MONGODB_AWS_AUTH libmongoc version (from VERSION_CURRENT file): 1.21.1 -- Searching for zlib CMake packages -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) -- Enabling zlib compression (bundled) -- Looking for include file unistd.h -- Looking for include file unistd.h - not found -- Looking for include file stdarg.h -- Looking for include file stdarg.h - found -- Searching for compression library zstd -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of socklen_t -- Check size of socklen_t - done -- Looking for sched_getcpu -- Looking for sched_getcpu - not found -- SSL disabled. Configuring without Client-Side Field Level Encryption support. -- Performing Test MONGOC_HAVE_SS_FAMILY -- Performing Test MONGOC_HAVE_SS_FAMILY - Failed -- SSL disabled -- SASL disabled -- Build files generated for: -- build system: Visual Studio 11 2012 Win64 -- Configuring done -- Generating done -- Build files have been written to: C:/MyTempDir/mongo-c-driver/cmake-VS2012-x64 -- Cache values // Output bson library base name BSON_OUTPUT_BASENAME:STRING=bson // Build the testing tree. BUILD_TESTING:BOOL=ON // Library version (for both libbson and libmongoc) BUILD_VERSION:STRING=1.21.1 // Path to a program. CCACHE_EXECUTABLE:FILEPATH=CCACHE_EXECUTABLE-NOTFOUND // Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=C:/MyTempDir/mongo-c-driver/cmake-VS2012-x64 // Build libraries as frameworks on darwin platforms ENABLE_APPLE_FRAMEWORK:BOOL=OFF // Enable automatic init and cleanup (GCC only) ENABLE_AUTOMATIC_INIT_AND_CLEANUP:BOOL=ON // Whether to build libbson. Set to ON/AUTO/SYSTEM, default AUTO. ENABLE_BSON:STRING=ON // Enable Client-Side Field Level Encryption support. Requires libmongocrypt. Set to ON/AUTO/OFF, default AUTO. ENABLE_CLIENT_SIDE_ENCRYPTION:STRING=AUTO // Turn on compile options for lcov ENABLE_COVERAGE:BOOL=OFF // Use system crypto profile (OpenSSL only) ENABLE_CRYPTO_SYSTEM_PROFILE:BOOL=OFF // Turn on runtime debug assertions ENABLE_DEBUG_ASSERTIONS:BOOL=OFF // Build MongoDB C Driver examples. ENABLE_EXAMPLES:BOOL=OFF // Turn on extra alignment of libbson types. Set to ON/OFF, default ON. Required for the 1.0 ABI but better disabled. ENABLE_EXTRA_ALIGNMENT:BOOL=ON // Build MongoDB C Driver HTML documentation. ENABLE_HTML_DOCS:BOOL=OFF // Enable ICU support, necessary to use non-ASCII usernames or passwords, default AUTO. ENABLE_ICU:STRING=OFF // Use strict compiler checks ENABLE_MAINTAINER_FLAGS:BOOL=OFF // Build MongoDB C Driver manual pages. ENABLE_MAN_PAGES:BOOL=OFF // Whether to build libmongoc. Set to ON/OFF, default ON. ENABLE_MONGOC:STRING=ON // Enable support for MONGODB-AWS authentication mechanism. Set to ON/AUTO/OFF, default AUTO. (also requires ENABLE_SSL not set to OFF) ENABLE_MONGODB_AWS_AUTH:STRING=AUTO // Enables building of position independent code for static library components. ENABLE_PIC:BOOL=ON // Fast performance counters on Intel using the RDTSCP instruction ENABLE_RDTSCP:BOOL=OFF // Enable SASL authentication (Kerberos). Options are "CYRUS" to use Cyrus SASL, "SSPI" to use Windows Native SSPI, "AUTO", or "OFF". These options are case-sensitive. ENABLE_SASL:STRING=OFF // Enable memory performance counters that use shared memory on Linux. Set to ON/AUTO/OFF, default AUTO. ENABLE_SHM_COUNTERS:STRING=AUTO // Enable snappy support. Set to ON/AUTO/OFF, default AUTO. ENABLE_SNAPPY:STRING=OFF // Support mongodb+srv URIs. Set to ON/AUTO/OFF, default AUTO. ENABLE_SRV:STRING=AUTO // Enable TLS connections and SCRAM-SHA-1 authentication. Options are "DARWIN" to use Apple's Secure Transport, "WINDOWS" to use Windows Secure Channel, "OPENSSL", "LIBRESSL", "AUTO", or "OFF". These options are case-sensitive. The default is "AUTO". Note that SCRAM-SHA-1 is required for authenticating to MongoDB 3.0 and later. ENABLE_SSL:STRING=OFF // Build and install static libbson/libmongoc. Set to ON/AUTO/OFF/BUILD_ONLY/DONT_INSTALL, default AUTO. ENABLE_STATIC:STRING=ON // Build MongoDB C Driver tests. ENABLE_TESTS:BOOL=OFF // Turn on verbose debug output ENABLE_TRACING:BOOL=OFF // Enable creation of uninstall script and associated uninstall build target. ENABLE_UNINSTALL:BOOL=ON // Enable zlib support ENABLE_ZLIB:STRING=AUTO // Enable zstd support. Set to ON/AUTO/OFF, default AUTO. ENABLE_ZSTD:STRING=AUTO // Output mongoc library base name MONGOC_OUTPUT_BASENAME:STRING=mongoc // Link runtime binaries using LLVM's lld linker MONGO_USE_LLD:BOOL=OFF // Path to a library. RT_LIBRARY:FILEPATH=RT_LIBRARY-NOTFOUND