Skip to content

Commit daf1254

Browse files
committed
Add removed lines
1 parent 5df6e80 commit daf1254

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ if(APPLE)
5252
find_path(IOKit_INCLUDE_DIR NAMES IOKitLib.h HINTS ${IOKit_INC_SEARCH_PATH} ${IOKit_PKGC_INCLUDE_DIRS} PATH_SUFFIXES IOKit)
5353
list(APPEND JSSC_ADDITIONAL_INCLUDES ${IOKit_INCLUDE_DIR})
5454
endif()
55+
5556
# Handle edge-case with legacy versioned SDK headers (e.g. usr/include/c++/4.2.1)
5657
if(CMAKE_OSX_SYSROOT)
5758
file(GLOB std_versions "${CMAKE_OSX_SYSROOT}/usr/include/c++/*")
@@ -67,6 +68,9 @@ if(APPLE)
6768
endif()
6869
endif()
6970

71+
set(CMAKE_CXX_STANDARD 11)
72+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
73+
7074
# Statically link gcc/c++
7175
if(MSVC)
7276
# /MT = Multithread, static version of the run-time library

0 commit comments

Comments
 (0)