mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
CMake: Disable Wattributes on gcc
This commit is contained in:
committed by
lightningterror
parent
c610d4d2d4
commit
fa26937885
@@ -247,6 +247,9 @@ if (MSVC)
|
||||
else()
|
||||
set(DEFAULT_WARNINGS -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-missing-field-initializers)
|
||||
endif()
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
list(APPEND DEFAULT_WARNINGS -Wno-attributes)
|
||||
endif()
|
||||
|
||||
if (USE_PGO_GENERATE OR USE_PGO_OPTIMIZE)
|
||||
add_compile_options("-fprofile-dir=${CMAKE_SOURCE_DIR}/profile")
|
||||
|
||||
Reference in New Issue
Block a user