Skip to content

Commit

Permalink
detect AppleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Mar 18, 2019
1 parent aab5544 commit 3ad1289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/TaichiCXXFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (MSVC)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} /Zc:__cplusplus /std:c++14 /MP /Z7 /D \"_CRT_SECURE_NO_WARNINGS\" /D \"_ENABLE_EXTENDED_ALIGNED_STORAGE\" /arch:AVX2 -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED")
else()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
message("Clang compiler detected. Using std=c++17.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
else()
Expand Down

0 comments on commit 3ad1289

Please sign in to comment.