COIN-OR::LEMON - Graph Library

Changeset 1185:b4f4c08e1210 in lemon


Ignore:
Timestamp:
02/24/13 19:44:14 (7 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
1186:2e959a5a0c2d, 1230:caf16813b1e8
Phase:
public
Message:

Better Maintainer build type settings (for MSVC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1162 r1185  
    9292SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
    9393
    94 SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING
     94IF(MSVC)
     95  SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
    9596    "Flags used by the C++ compiler during maintainer builds."
    96     FORCE )
    97 SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING
     97    )
     98  SET( CMAKE_C_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
    9899    "Flags used by the C compiler during maintainer builds."
    99     FORCE )
    100 SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
     100    )
     101  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
     102    "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
     103    "Flags used for linking binaries during maintainer builds."
     104    )
     105  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
     106    "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
     107    "Flags used by the shared libraries linker during maintainer builds."
     108    )
     109ELSE()
     110  SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING
     111    "Flags used by the C++ compiler during maintainer builds."
     112    )
     113  SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING
     114    "Flags used by the C compiler during maintainer builds."
     115    )
     116  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    101117    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    102118    "Flags used for linking binaries during maintainer builds."
    103     FORCE )
    104 SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
     119    )
     120  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
    105121    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    106122    "Flags used by the shared libraries linker during maintainer builds."
    107     FORCE )
     123    )
     124ENDIF()
     125
    108126MARK_AS_ADVANCED(
    109127    CMAKE_CXX_FLAGS_MAINTAINER
Note: See TracChangeset for help on using the changeset viewer.