mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Disable variadic macro warning when compiling at full warning level.
I was not able to get a macro version running and thus I opted for a cmake patch.
This commit is contained in:
parent
2b2fcc9460
commit
ae06365bbd
@ -233,7 +233,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
|
||||||
endif(EIGEN_TEST_C++0x)
|
endif(EIGEN_TEST_C++0x)
|
||||||
if(EIGEN_TEST_MAX_WARNING_LEVEL)
|
if(EIGEN_TEST_MAX_WARNING_LEVEL)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wconversion")
|
CHECK_CXX_COMPILER_FLAG("-Wno-variadic-macros" FLAG_VARIADIC)
|
||||||
|
if(FLAG_VARIADIC)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wconversion -Wno-variadic-macros")
|
||||||
|
else(FLAG_VARIADIC)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wconversion")
|
||||||
|
endif(FLAG_VARIADIC)
|
||||||
endif(EIGEN_TEST_MAX_WARNING_LEVEL)
|
endif(EIGEN_TEST_MAX_WARNING_LEVEL)
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES Linux)
|
if(CMAKE_SYSTEM_NAME MATCHES Linux)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COVERAGE_FLAGS} -g2")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COVERAGE_FLAGS} -g2")
|
||||||
|
Loading…
Reference in New Issue
Block a user