Skip to content

Commit

Permalink
build: resolve cmake version check TODO in DetectCXXStandard.cmake (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Nov 4, 2022
1 parent bfacaf3 commit 5489584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/DetectCXXStandard.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ function(DetectCXXStandard OUTPUT_VAR)
set(CXX_STANDARD14_FLAG "/std:c++14")
endif()

# TODO use VERSION_GREATER_EQUAL in cmake 3.7+
check_cxx_compiler_flag(${CXX_STANDARD20_FLAG} HAS_CXX20_FLAG)
if (HAS_CXX20_FLAG AND ((${CMAKE_VERSION} VERSION_EQUAL "3.12.0") OR (${CMAKE_VERSION} VERSION_GREATER "3.12.0")))
if (HAS_CXX20_FLAG AND (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0"))
set(${OUTPUT_VAR} 20 PARENT_SCOPE)
return()
endif()

check_cxx_compiler_flag(${CXX_STANDARD17_FLAG} HAS_CXX17_FLAG)
if (HAS_CXX17_FLAG AND ((${CMAKE_VERSION} VERSION_EQUAL "3.8.0") OR (${CMAKE_VERSION} VERSION_GREATER "3.8.0")))
if (HAS_CXX17_FLAG)
set(${OUTPUT_VAR} 17 PARENT_SCOPE)
return()
endif()
Expand Down

1 comment on commit 5489584

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 5489584 Previous: bfacaf3 Ratio
BenchmarkCcbAdfLearn.Benchmark(args: many_features) 49735.73445638021 ns (± 532.3669781247777) 19428.57382638114 ns (± 15.579005801322783) 2.56

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.