Commit e94449d7 authored by Rudolf Weeber's avatar Rudolf Weeber Committed by Florian Weik

CMake: Disable unsupoorted -Wunused-private-field on gnu

parent fb99ff3c
......@@ -369,7 +369,11 @@ if(WARNINGS_ARE_ERRORS)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -Xcompiler -Werror")
endif()
endif(WARNINGS_ARE_ERRORS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-sign-compare -Wno-unused-function -Wno-unused-private-field -Wno-unused-variable")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-sign-compare -Wno-unused-function -Wno-unused-variable")
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# G++ doesn't know this flag
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field")
endif()
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8.5")
# older versions don't support -Wno-pedantic which we need in src/python
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment