Description
In CMakeLists.txt for libmongoc, we first generate mongoc-config.h:
configure_file (
|
"${SOURCE_DIR}/src/mongoc/mongoc-config.h.in"
|
"${PROJECT_BINARY_DIR}/src/mongoc/mongoc-config.h"
|
)
|
and then handle MONGOC_ENABLE_COMPRESSION:
if (ENABLE_SNAPPY STREQUAL "bundled")
|
set (MONGOC_ENABLE_COMPRESSION 1)
|
set (MONGOC_ENABLE_COMPRESSION_SNAPPY 1)
|
include(FindSnappy)
|
endif ()
|
The configure_file call must come after all the variables it needs are set.
Attachments
Issue Links
- is depended on by
-
CXX-1448 Compression related build issues on Evergreen
-
- Closed
-
- is duplicated by
-
CDRIVER-2368 Test is broken for windows, using version mongo-c-driver-1.8.1
-
- Closed
-