mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Quiet GCC warnings
This commit is contained in:
parent
8f360f1a69
commit
06e113c85d
8
thirdparty/CMakeLists.txt
vendored
8
thirdparty/CMakeLists.txt
vendored
@ -32,6 +32,14 @@ set( BUILD_SHARED_LIBS OFF )
|
||||
# instead of with cmake_policy will apply the change to the third-party CMakeLists files.
|
||||
set( CMAKE_POLICY_DEFAULT_CMP0077 NEW )
|
||||
|
||||
# Avoid spurious warnings on g++
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||
set_source_files_properties(
|
||||
${CMAKE_SOURCE_DIR}/thirdparty/3dxware_sdk/src/navlib_stub.c
|
||||
PROPERTIES COMPILE_FLAGS "-Wno-attributes"
|
||||
)
|
||||
endif()
|
||||
|
||||
set( ARGPARSE_INSTALL OFF )
|
||||
add_subdirectory( argparse )
|
||||
add_subdirectory( clipper2 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user