Skip to content

Commit 70ea6e2

Browse files
committed
Add CMake comments
they explain why we need the no-warn flag
1 parent bcc0d80 commit 70ea6e2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/game_of_life/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ target_link_libraries(GameOfLife PRIVATE
55
Magnum::Magnum Magnum::GL Magnum::Application
66
Magnum::Shaders Magnum::Primitives)
77

8+
# `using enum` is apparently a C++ 20 extension, but is widely supported,
9+
# so we can use it without a feature test (and this skips the warning).
810
target_compile_options(GameOfLife PUBLIC ${SYCL_FLAGS} -Wno-c++20-extensions)
911
target_link_options(GameOfLife PUBLIC ${SYCL_FLAGS})

src/mandelbrot/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ target_link_libraries(Mandelbrot PRIVATE
66
Magnum::Magnum Magnum::GL Magnum::Application
77
Magnum::Shaders Magnum::Primitives)
88

9+
# `using enum` is apparently a C++ 20 extension, but is widely supported,
10+
# so we can use it without a feature test (and this skips the warning).
911
target_compile_options(Mandelbrot PUBLIC ${SYCL_FLAGS} -Wno-c++20-extensions)
1012
target_link_options(Mandelbrot PUBLIC ${SYCL_FLAGS})

0 commit comments

Comments
 (0)