File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ cmake_minimum_required (VERSION 3.1)
3
3
# Used in MaintainerFlags.cmake to silence errors while testing configs.
4
4
set (MESSAGES_ENABLED 1 )
5
5
6
- function (message )
7
- list (GET ARGV 0 MessageType )
8
- if (MESSAGES_ENABLED )
9
- list (REMOVE_AT ARGV 0 )
10
- _message (${MessageType} "${ARGV} " )
11
- endif ()
12
- endfunction ()
13
-
14
6
set (ENABLE_SSL AUTO CACHE STRING
15
7
"Enable TLS connections and SCRAM-SHA-1 authentication. Options are
16
8
\" DARWIN\" to use Apple's Secure Transport, \" WINDOWS\" to use Windows
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ if (ENABLE_MAINTAINER_FLAGS AND NOT MSVC AND NOT MONGOC_MAINTAINER_FLAGS_SET)
12
12
13
13
foreach (MAINTAINER_FLAG ${MAINTAINER_FLAGS} )
14
14
# Avoid useless "Performing Test FLAG_OK" message.
15
- set (MESSAGES_ENABLED 0 )
15
+ set (CMAKE_REQUIRED_QUIET 1 )
16
16
check_c_compiler_flag ("${MAINTAINER_FLAG} " FLAG_OK )
17
- set (MESSAGES_ENABLED 1 )
17
+ set (CMAKE_REQUIRED_QUIET 0 )
18
18
if (FLAG_OK )
19
19
message (STATUS "C compiler accepts ${MAINTAINER_FLAG} " )
20
20
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MAINTAINER_FLAG} " )
You can’t perform that action at this time.
0 commit comments