We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef61ba commit 4bae6feCopy full SHA for 4bae6fe
libmysql/authentication_ldap/CMakeLists.txt
@@ -19,6 +19,11 @@
19
20
INCLUDE(CheckIncludeFiles)
21
22
+IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
23
+ INCLUDE_DIRECTORIES(SYSTEM /usr/local/include)
24
+ LIST(APPEND CMAKE_REQUIRED_INCLUDES "/usr/local/include")
25
+ENDIF()
26
+
27
CHECK_INCLUDE_FILES(sasl/sasl.h HAVE_SASL_H)
28
CHECK_INCLUDE_FILES(lber.h HAVE_LBER_H)
29
@@ -48,7 +53,9 @@ ENDIF()
48
53
# IF someone like can build the cyrus sasl library on windows and build LDAP authentication sasl client as well.
49
54
IF (CMAKE_SYSTEM_NAME MATCHES "SunOS")
50
55
SET(SASL_LIBRARY "sasl")
51
-ELSE ()
56
+ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
57
+ SET(SASL_LIBRARY "-L/usr/local/lib -R/usr/local/lib -lsasl2")
58
+ELSE()
52
59
SET(SASL_LIBRARY "sasl2")
60
ENDIF ()
61
0 commit comments