Skip to content

Commit

Permalink
Merge pull request #12 from chinwobble/update-tests
Browse files Browse the repository at this point in the history
reduce C++ to c++17
  • Loading branch information
sfchen authored Dec 19, 2024
2 parents 2fb8ecc + df4153b commit 8c74771
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 8c74771

Please sign in to comment.