Skip to content

Commit

Permalink
tests: Run with -fhardened
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Jan 6, 2025
1 parent 191c1b4 commit 90a121a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ else()
set(QT_MIN_VERSION "5.15")
endif()

if(KDDockWidgets_DEVELOPER_MODE
AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "14.1"
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fhardened -O1")
endif()

# BEGIN frontend enabling

set(KDDW_FRONTEND_QTWIDGETS OFF)
Expand Down

0 comments on commit 90a121a

Please sign in to comment.