COIN-OR::LEMON - Graph Library

Changeset 1416:f179aa1045a4 in lemon for CMakeLists.txt


Ignore:
Timestamp:
11/01/18 11:27:05 (6 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
1417:2236d00ca778, 1422:332eab7995fe
Phase:
public
Message:

Suppress unused typdef warnings (#615)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1398 r1416  
    149149ENDIF()
    150150
     151IF( ( ("${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)
     157ENDIF()
    151158
    152159IF(DEFINED ENV{LEMON_CXX_WARNING})
    153160  SET(CXX_WARNING $ENV{LEMON_CXX_WARNING})
    154161ELSE()
    155   IF(CMAKE_COMPILER_IS_GNUCXX)
     162  IF( ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
     163      OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
     164      )
    156165    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")
    157170    SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
    158171    SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
Note: See TracChangeset for help on using the changeset viewer.