Skip to content

Commit 848a67e

Browse files
committed
Fix: detect_cpu requires c++20
1 parent d2d6f70 commit 848a67e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ if (KFR_ARCH IN_LIST DETECT_NAMES AND NOT CMAKE_CROSSCOMPILING)
282282
${CMAKE_CURRENT_SOURCE_DIR}/cmake/detect_cpu.cpp
283283
CMAKE_FLAGS
284284
"-DINCLUDE_DIRECTORIES=${CMAKE_CURRENT_SOURCE_DIR}/include"
285-
-DCMAKE_CXX_STANDARD=17
285+
-DCMAKE_CXX_STANDARD=20
286286
-DCMAKE_CXX_STANDARD_REQUIRED=ON
287287
"-DCOMPILE_DEFINITIONS=-DCPU_${KFR_ARCH}=1"
288-
-DCMAKE_CXX_EXTENSIONS=ON
289288
COMPILE_OUTPUT_VARIABLE COMPILE_OUT
290289
RUN_OUTPUT_VARIABLE RUN_OUT)
291290
if (COMPILE_RESULT AND RUN_RESULT EQUAL 0)

docs/cxxdox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ input:
3333
compile_options:
3434
- "-DKFR_ENABLE_FLAC=1"
3535
- "-DKFR_FORCE_GENERIC_CPU=1"
36-
- "-std=gnu++17"
36+
- "-std=gnu++20"
3737
- "-DDOCUMENTATION"
3838

3939
repository: https://github.com/kfrlib/kfr/blob/{TAG}/include/kfr/{FILE}#L{LINE}

docs/docs/dft2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ The KFR implementation of the FFT:
2929
* has special implementations for FFT sizes up to 1024
3030
* has no external dependencies
3131
* is thread-safe, with no global data
32-
* is written in modern C++17
32+
* is written in modern C++20
3333
* is open source (GPL v2+ license, commercial license is availalble for closed source projects, see https://kfr.dev )

0 commit comments

Comments
 (0)