Skip to content

Commit

Permalink
reduce C++ to c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
benney authored and benney committed Dec 19, 2024
1 parent d4ce0bc commit df4153b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CMakeLists.txt
cmake_minimum_required(VERSION 3.21)
project(fastplong VERSION 0.2.1)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Find dependencies provided by vcpkg (via vcpkg.cmake)
Expand Down Expand Up @@ -29,6 +29,7 @@ endif()

if (CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "x86_64")
add_compile_options(-march=haswell -maes)
# add_link_options(-pg)
## HWY_AVX3 which is 512
# SET(GCC_COVERAGE_COMPILE_FLAGS "-march=sapphirerapids")
endif()
Expand Down Expand Up @@ -137,4 +138,4 @@ install(TARGETS fastplong
CONFIGURATIONS Release
RUNTIME
DESTINATION bin
)
)

0 comments on commit df4153b

Please sign in to comment.