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 5df6e80 commit daf1254Copy full SHA for daf1254
CMakeLists.txt
@@ -52,6 +52,7 @@ if(APPLE)
52
find_path(IOKit_INCLUDE_DIR NAMES IOKitLib.h HINTS ${IOKit_INC_SEARCH_PATH} ${IOKit_PKGC_INCLUDE_DIRS} PATH_SUFFIXES IOKit)
53
list(APPEND JSSC_ADDITIONAL_INCLUDES ${IOKit_INCLUDE_DIR})
54
endif()
55
+
56
# Handle edge-case with legacy versioned SDK headers (e.g. usr/include/c++/4.2.1)
57
if(CMAKE_OSX_SYSROOT)
58
file(GLOB std_versions "${CMAKE_OSX_SYSROOT}/usr/include/c++/*")
@@ -67,6 +68,9 @@ if(APPLE)
67
68
69
70
71
+set(CMAKE_CXX_STANDARD 11)
72
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
73
74
# Statically link gcc/c++
75
if(MSVC)
76
# /MT = Multithread, static version of the run-time library
0 commit comments