Ticket #51083: patch-cxxflags.diff

File patch-cxxflags.diff, 452 bytes (added by RJVB (René Bertin), 8 years ago)
  • CMakeLists.txt

    diff --git CMakeLists.txt CMakeLists.txt
    index ddccd04..be00b6a 100644
    add_definitions(${Qt5Widgets_DEFINITIONS}) 
    2323
    2424# Executables fail to build with Qt 5 in the default configuration
    2525# without -fPIE. We add that here.
    26 set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
     26set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
    2727
    2828include_directories(
    2929    .