File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 13
13
option(MULTITHREAD_SUPPORT_ENABLED "Multithreaded Support Enabled" TRUE )
14
14
endif ()
15
15
16
+ option (BUILD_IN_CPP17_MODE "Build with C++17 flags" FALSE )
16
17
17
18
18
19
if (CMAKE_COMPILER_IS_GNUCC)
@@ -80,13 +81,21 @@ enable_testing()
80
81
if (CMAKE_COMPILER_IS_GNUCC)
81
82
execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
82
83
83
- if (GCC_VERSION VERSION_LESS 5.0 )
84
+ if (GCC_VERSION VERSION_LESS 4.9 )
84
85
set (CPP14_FLAG "-std=c++1y" )
85
86
else ()
86
- set (CPP14_FLAG "-std=c++14" )
87
+ if (BUILD_IN_CPP17_MODE)
88
+ set (CPP14_FLAG "-std=c++1z" )
89
+ else ()
90
+ set (CPP14_FLAG "-std=c++14" )
91
+ endif ()
87
92
endif ()
88
93
else ()
89
- set (CPP14_FLAG "-std=c++14" )
94
+ if (BUILD_IN_CPP17_MODE)
95
+ set (CPP14_FLAG "-std=c++1z" )
96
+ else ()
97
+ set (CPP14_FLAG "-std=c++14" )
98
+ endif ()
90
99
endif ()
91
100
92
101
if (MSVC )
@@ -170,7 +179,7 @@ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${LINKER_FLAGS}")
170
179
171
180
172
181
173
- set (CHAISCRIPT_BRANCH master )
182
+ set (CHAISCRIPT_BRANCH develop )
174
183
175
184
file (DOWNLOAD https://github.com/ChaiScript/ChaiScript/archive/${CHAISCRIPT_BRANCH} .tar.gz "${CMAKE_BINARY_DIR} /chaiscript/chaiscript-${CHAISCRIPT_BRANCH} .tar.gz"
176
185
INACTIVITY_TIMEOUT 180 TIMEOUT 180 TLS_VERIFY off )
You can’t perform that action at this time.
0 commit comments