Muted warning "will change in GCC 7.1" (issue #914)

This commit is contained in:
Benoit Blanchon
2019-03-01 11:41:47 +01:00
parent 20fcb99830
commit 1ea8d92cc3
2 changed files with 6 additions and 0 deletions

View File

@ -11,3 +11,8 @@ target_include_directories(catch
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# prevent "xxx will change in GCC x.x" with arm-linux-gnueabihf-gcc
target_compile_options(catch PRIVATE -Wno-psabi)
endif()