COIN-OR::LEMON - Graph Library

Ticket #632: cmake-force.patch

File cmake-force.patch, 2.1 KB (added by Alpar Juttner, 4 years ago)
  • CMakeLists.txt

    # HG changeset patch
    # Parent  4fd76139b69ec938db4d67ce0927ad5923647ed2
    Add FORCE to MAINTAINER mode settings
    
    diff --git a/CMakeLists.txt b/CMakeLists.txt
    a b  
    198198IF(MSVC)
    199199  SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
    200200  SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
    201     "Flags used by the C++ compiler during maintainer builds."
     201    "Flags used by the C++ compiler during maintainer builds." FORCE
    202202    )
    203203  SET( CMAKE_C_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
    204     "Flags used by the C compiler during maintainer builds."
     204    "Flags used by the C compiler during maintainer builds." FORCE
    205205    )
    206206  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    207207    "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
    208     "Flags used for linking binaries during maintainer builds."
     208    "Flags used for linking binaries during maintainer builds." FORCE
    209209    )
    210210  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
    211211    "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
    212     "Flags used by the shared libraries linker during maintainer builds."
     212    "Flags used by the shared libraries linker during maintainer builds." FORCE
    213213    )
    214214ELSE()
    215215  SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING
    216     "Flags used by the C++ compiler during maintainer builds."
     216    "Flags used by the C++ compiler during maintainer builds." FORCE
    217217    )
    218218  SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING
    219     "Flags used by the C compiler during maintainer builds."
     219    "Flags used by the C compiler during maintainer builds." FORCE
    220220    )
    221221  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    222222    "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
    223     "Flags used for linking binaries during maintainer builds."
     223    "Flags used for linking binaries during maintainer builds." FORCE
    224224    )
    225225  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
    226226    "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
    227     "Flags used by the shared libraries linker during maintainer builds."
     227    "Flags used by the shared libraries linker during maintainer builds." FORCE
    228228    )
    229229ENDIF()
    230230