Skip to content

Commit

Permalink
Add cmake option for enabling sanitizers
Browse files Browse the repository at this point in the history
This adds the -DECM_ENABLE_SANITIZERS option
  • Loading branch information
Tobias Fella committed Jan 25, 2025
1 parent adf69bc commit 5a6f0d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ string(JOIN ~ FULL_VERSION ${PROJECT_VERSION} ${PRE_STAGE})
message(STATUS)
message(STATUS "Configuring ${PROJECT_NAME} ${FULL_VERSION} ==>")

find_package(ECM NO_MODULE)
if (ECM_FOUND)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(ECMEnableSanitizers)
endif()

include(FeatureSummary)
include(CTest)

Expand Down

0 comments on commit 5a6f0d7

Please sign in to comment.