mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 01:44:35 +08:00
[cmake] remove GCC -Wunknown-pragmas workaround
The offending pragma definitions are now only defined for coverity builds
This commit is contained in:
parent
541fc3a8c6
commit
8883ccc503
@ -74,10 +74,5 @@ if (WIN32)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-DNOMINMAX>)
|
||||
endif()
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
|
||||
if (CMAKE_COMPILER_IS_GNUCC AND (CMAKE_CXX_COMPILER_VERSION LESS 13))
|
||||
CheckCFlag(-Wno-unknown-pragmas)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "default CXXFLAGS")
|
||||
message("Using CXXFLAGS ${CMAKE_CXX_FLAGS}")
|
||||
|
@ -57,11 +57,6 @@ if (ENABLE_WARNING_ERROR)
|
||||
CheckCFlag(-Werror)
|
||||
endif()
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
|
||||
if (CMAKE_COMPILER_IS_GNUCC AND (CMAKE_C_COMPILER_VERSION LESS 13))
|
||||
CheckCFlag(-Wno-unknown-pragmas)
|
||||
endif()
|
||||
|
||||
CheckCFlag(-fno-omit-frame-pointer)
|
||||
|
||||
CheckCFlag(-fmacro-prefix-map="${CMAKE_SOURCE_DIR}"="./")
|
||||
|
Loading…
Reference in New Issue
Block a user