Skip to content

Commit

Permalink
Enable __cplusplus macro in MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Mar 18, 2019
1 parent 43ce39a commit a686865
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 @@ -40,7 +40,7 @@ endif ()
if (MSVC)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/external/lib)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} /MP /Z7 /D \"_CRT_SECURE_NO_WARNINGS\" /D \"_ENABLE_EXTENDED_ALIGNED_STORAGE\" /arch:AVX2 -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED /std:c++14")
"${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")
message("Clang compiler detected. Using std=c++17.")
Expand Down

0 comments on commit a686865

Please sign in to comment.