We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e3f15 commit a2114b0Copy full SHA for a2114b0
CMakeLists.txt
@@ -187,6 +187,15 @@ if (BUILD_CXX)
187
option(STDCALL "Build highs with the __stdcall convention" OFF)
188
endif()
189
190
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
191
+ CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
192
+ CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
193
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
194
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
195
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++11")
196
+ endif()
197
+
198
199
# Basic type
200
include(CMakePushCheckState)
201
cmake_push_check_state(RESET)
0 commit comments