Skip to content

Commit 6be53e6

Browse files
committed
Disable PSABI warnings on GCC (found on Rpi32)
1 parent cc10ec7 commit 6be53e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ set(test_dir "${CMAKE_SOURCE_DIR}/test")
2626
set(include_dir "${CMAKE_SOURCE_DIR}/include")
2727
set(submodules_dir "${CMAKE_SOURCE_DIR}/submodules")
2828

29+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
30+
# Disable PSABI warnings in GCC (on RPi).
31+
list(APPEND CXX_FLAG_SET "-Wno-psabi")
32+
endif()
33+
34+
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_FLAG_SET}>")
35+
2936
# clang-format
3037
find_program(clang_format NAMES clang-format)
3138
if (NOT clang_format)

0 commit comments

Comments
 (0)