mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-23 06:40:49 +00:00
Fix annoying cmake output.
This commit is contained in:
parent
8872421785
commit
d6e4566418
@ -14,22 +14,13 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)
|
||||||
message( FATAL_ERROR "RPCS3 requires at least gcc-5.1." )
|
message( FATAL_ERROR "RPCS3 requires at least gcc-5.1." )
|
||||||
endif()
|
endif()
|
||||||
# FIXME: do we really need this?
|
|
||||||
# GCC 6.1 is insufficient to compile, because of a regression bug
|
|
||||||
#if(GCC_MAJOR EQUAL "6" AND GCC_MINOR EQUAL "1")
|
|
||||||
# message(FATAL_ERROR
|
|
||||||
# "GCC ${CMAKE_C_COMPILER_VERSION} is insufficient to build this project! "
|
|
||||||
# "If you need to compile with GCC, use GCC 5.4 or lower or GCC 6.2 or higher "
|
|
||||||
# "to build the project, or use CLANG instead. "
|
|
||||||
# "See this regression bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70869")
|
|
||||||
#endif()
|
|
||||||
|
|
||||||
# Set compiler options here
|
# Set compiler options here
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
add_compile_options(-Wno-attributes -Wno-enum-compare -Wno-invalid-offsetof)
|
add_compile_options(-Wno-attributes -Wno-enum-compare -Wno-invalid-offsetof)
|
||||||
|
|
||||||
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
||||||
# Clang 3.4 and lower are too old
|
# Clang 3.4 and lower are too old
|
||||||
#if(CLANG_VERSION_MAJOR LESS "3" AND CLANG_VERSION_MINOR LESS "4")
|
#if(CLANG_VERSION_MAJOR LESS "3" AND CLANG_VERSION_MINOR LESS "4")
|
||||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user