Skip to content

Commit 6040421

Browse files
committed
CDRIVER-2083 Raise a warning when using CMake on non-Windows platform
1 parent 1f0cb5a commit 6040421

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8)
1+
cmake_minimum_required(VERSION 3.1)
22

33
project (libmongoc C)
44

@@ -19,6 +19,10 @@ option(ENABLE_AUTOMATIC_INIT_AND_CLEANUP "Enable automatic init and cleanup (GCC
1919
option(ENABLE_CRYPTO_SYSTEM_PROFILE "Use system crypto profile (OpenSSL only)" OFF)
2020
option(ENABLE_TRACING "Turn on verbose debug output" OFF)
2121

22+
if (NOT WIN32)
23+
message(WARNING "CMake support is experimental and may not produce production quality artifacts")
24+
endif ()
25+
2226
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/build/cmake)
2327

2428
include(InstallRequiredSystemLibraries)

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Next Release
22
============
33

4+
* Minimum required CMake version has been increased to 3.1.
5+
* CMake remains experimental on non-Windows platforms and issues a warning now
46
* Experimental support for wire compression.
57
* Support for snappy and zlib. MongoDB 3.4 only supports snappy, while zlib
68
support is expected in MongoDB 3.6. Wire compression is still experimental

0 commit comments

Comments
 (0)