File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
include (CheckSymbolExists )
2
+ include (CMakePushCheckState )
2
3
3
4
message (STATUS "Searching for sasl/sasl.h" )
4
5
find_path (
@@ -27,12 +28,16 @@ endif ()
27
28
if (SASL_INCLUDE_DIRS AND SASL_LIBRARIES )
28
29
set (SASL_FOUND 1 )
29
30
31
+ cmake_push_check_state ()
32
+ list (APPEND CMAKE_REQUIRED_INCLUDES ${SASL_INCLUDE_DIRS} )
33
+ list (APPEND CMAKE_REQUIRED_LIBRARIES ${SASL_LIBRARIES} )
30
34
check_symbol_exists (
31
35
sasl_client_done
32
- ${SASL_INCLUDE_DIRS} /sasl/sasl.h
33
- MONGOC_HAVE_SASL_CLIENT_DONE )
36
+ sasl/sasl.h
37
+ HAVE_SASL_CLIENT_DONE )
38
+ cmake_pop_check_state ()
34
39
35
- if (MONGOC_HAVE_SASL_CLIENT_DONE )
40
+ if (HAVE_SASL_CLIENT_DONE )
36
41
set (MONGOC_HAVE_SASL_CLIENT_DONE 1 )
37
42
else ()
38
43
set (MONGOC_HAVE_SASL_CLIENT_DONE 0 )
You can’t perform that action at this time.
0 commit comments