mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
replace GREATER_EQUAL with GREATER
GREATER_EQUAL is not supported in CMake 2.8
This commit is contained in:
+1
-1
@@ -388,7 +388,7 @@ if (CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
|
||||
list(GET GCC_VERSION_COMPONENTS 0 GCC_MAJOR)
|
||||
list(GET GCC_VERSION_COMPONENTS 1 GCC_MINOR)
|
||||
message(STATUS "gcc-mj=${GCC_MAJOR}, gcc-mn=${GCC_MINOR}")
|
||||
if(GCC_MAJOR GREATER_EQUAL "14")
|
||||
if(GCC_MAJOR GREATER "13")
|
||||
execute_process(COMMAND sed -i "/QMAKE_CXXFLAGS += -Wno-deprecated-declarations/a\\QMAKE_CXXFLAGS += -Wno-error=template-id-cdtor" ${QRENDERDOCPRO})
|
||||
message(STATUS "add option -Wno-error=template-id-cdtor")
|
||||
endif()
|
||||
|
||||
@@ -37,6 +37,7 @@ DEFINES += QT_NO_DEPRECATED_WARNINGS
|
||||
|
||||
# HA HA good joke, QT_NO_DEPRECATED_WARNINGS only covers SOME warnings, not all
|
||||
QMAKE_CXXFLAGS += -Wno-deprecated-declarations
|
||||
QMAKE_CXXFLAGS += -Wno-error=template-id-cdtor
|
||||
|
||||
# Different output folders per platform
|
||||
win32 {
|
||||
|
||||
Reference in New Issue
Block a user