Changeset 1416:f179aa1045a4 in lemon for CMakeLists.txt
- Timestamp:
- 11/01/18 11:27:05 (6 years ago)
- Branch:
- default
- Children:
- 1417:2236d00ca778, 1422:332eab7995fe
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r1398 r1416 149 149 ENDIF() 150 150 151 IF( ( ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND 152 ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER_EQUAL "4.8") ) 153 OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 154 OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") 155 ) 156 SET(LEMON_NO_UNUSED_LOCAL_TYPEDEF_WARNINGS TRUE) 157 ENDIF() 151 158 152 159 IF(DEFINED ENV{LEMON_CXX_WARNING}) 153 160 SET(CXX_WARNING $ENV{LEMON_CXX_WARNING}) 154 161 ELSE() 155 IF(CMAKE_COMPILER_IS_GNUCXX) 162 IF( ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") 163 OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 164 ) 156 165 SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas") 166 SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb") 167 SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb") 168 ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") 169 SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wno-unknown-pragmas") 157 170 SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb") 158 171 SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
Note: See TracChangeset
for help on using the changeset viewer.