Skip to content

Commit

Permalink
Update Configuration.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lackhole committed Oct 28, 2023
1 parent c45fab9 commit f6dbde9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions cmake/Configuration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@ include(CheckCXXStandardSupport)
include(CheckCXX_TypeExists)
include(CheckCXX_InitializerListExists)

CheckCXXStandardSupport(11 SS_COMPILER_SUPPORT_STD_11)
CheckCXXStandardSupport(14 SS_COMPILER_SUPPORT_STD_14)
CheckCXXStandardSupport(17 SS_COMPILER_SUPPORT_STD_17)
CheckCXXStandardSupport(20 SS_COMPILER_SUPPORT_STD_20)
CheckCXXStandardSupport(23 SS_COMPILER_SUPPORT_STD_23)
if ("${CMAKE_CXX_STANDARD}" STREQUAL "")
CheckCXXStandardSupport(11 SS_COMPILER_SUPPORT_STD_11)
CheckCXXStandardSupport(14 SS_COMPILER_SUPPORT_STD_14)
CheckCXXStandardSupport(17 SS_COMPILER_SUPPORT_STD_17)
CheckCXXStandardSupport(20 SS_COMPILER_SUPPORT_STD_20)
CheckCXXStandardSupport(23 SS_COMPILER_SUPPORT_STD_23)
else()
set(SS_COMPILER_SUPPORT_STD_11 0)
set(SS_COMPILER_SUPPORT_STD_14 0)
set(SS_COMPILER_SUPPORT_STD_17 0)
set(SS_COMPILER_SUPPORT_STD_20 0)
set(SS_COMPILER_SUPPORT_STD_23 0)
set(SS_COMPILER_SUPPORT_STD_${CMAKE_CXX_STANDARD} 1)
endif ()

if(SS_COMPILER_SUPPORT_STD_23)
set(SS_COMPILER_SUPPORT_STD 23)
Expand Down

0 comments on commit f6dbde9

Please sign in to comment.