File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,19 @@ option(ENABLE_MAINTAINER_FLAGS "Use strict compiler checks" OFF)
29
29
option (ENABLE_AUTOMATIC_INIT_AND_CLEANUP "Enable automatic init and cleanup (GCC only)" ON )
30
30
option (ENABLE_CRYPTO_SYSTEM_PROFILE "Use system crypto profile (OpenSSL only)" OFF )
31
31
option (ENABLE_TRACING "Turn on verbose debug output" OFF )
32
- set (ENABLE_SNAPPY bundled CACHE STRING "Enable snappy support" )
32
+ set (ENABLE_SNAPPY AUTO CACHE STRING "Enable snappy support" )
33
33
set (ENABLE_ZLIB bundled CACHE STRING "Enable zlib support" )
34
34
35
35
if (NOT WIN32 )
36
36
message (WARNING "CMake support is experimental and may not produce production quality artifacts" )
37
37
endif ()
38
38
39
- if (ENABLE_SNAPPY STREQUAL "bundled" )
40
- project (libmongoc C CXX )
39
+ if (WIN32 AND ENABLE_SNAPPY STREQUAL "AUTO" )
40
+ project (libmongoc C CXX )
41
+ set (ENABLE_SNAPPY "bundled" )
41
42
else ()
42
- project (libmongoc C )
43
+ project (libmongoc C )
44
+ set (ENABLE_SNAPPY "" )
43
45
endif ()
44
46
45
47
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR} /build/cmake )
@@ -688,10 +690,6 @@ function(mongoc_add_example example use_shared)
688
690
target_link_libraries (${example} shlwapi )
689
691
endif ()
690
692
set (EXAMPLES ${EXAMPLES} ${example} )
691
- if (ENABLE_SNAPPY STREQUAL "bundled" )
692
- set_target_properties (${example} PROPERTIES LINKER_LANGUAGE CXX )
693
- set_target_properties (${example} PROPERTIES LINKER_LANGUAGE CXX )
694
- endif ()
695
693
endif ()
696
694
endfunction ()
697
695
You can’t perform that action at this time.
0 commit comments