We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cb31c commit 18f6e5eCopy full SHA for 18f6e5e
CMakeLists.txt
@@ -65,6 +65,15 @@ ENDIF(WIN32)
65
66
#-----------------
67
# CPPFLAGS, CXXFLAGS and LDFLAGS from the environment
68
+
69
+SET(FreeBSD11Up False)
70
+if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND
71
+ ${CMAKE_SYSTEM_VERSION} GREATER "10")
72
+ SET(FreeBSD11Up True)
73
+endif()
74
75
+# c++11 enabled by default only for FreeBSD 11 and up
76
+OPTION(CMAKE_ENABLE_C++11 "Build Connector using c++11" ${FreeBSD11Up})
77
IF(CMAKE_ENABLE_C++11)
78
INCLUDE(CheckCXXCompilerFlag)
79
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
0 commit comments