Skip to content

Commit

Permalink
🆕 🐎 constexpr support
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-jusiak committed May 1, 2023
1 parent 04cb8c3 commit 1df1c1a
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 310 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ endif()

set(IS_COMPILER_OPTION_GCC_LIKE FALSE)
set(IS_COMPILER_OPTION_MSVC_LIKE FALSE)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR
("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR
("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
"${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC"))
set(IS_COMPILER_OPTION_MSVC_LIKE TRUE) # cl and clang-cl
else()
set(IS_COMPILER_OPTION_GCC_LIKE TRUE) # g++ and clang++
endif()

include(CheckCXXCompilerFlag)
if(IS_COMPILER_OPTION_MSVC_LIKE)
if(IS_COMPILER_OPTION_MSVC_LIKE)
check_cxx_compiler_flag(/std:c++14 HAS_CXX14_FLAG)
check_cxx_compiler_flag(/std:c++17 HAS_CXX17_FLAG)
check_cxx_compiler_flag(/std:c++20 HAS_CXX20_FLAG)
Expand Down
Loading

0 comments on commit 1df1c1a

Please sign in to comment.