Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 22 Lines | |||||
option(ENABLE_QRCODE "Enable QR code display" ON) | option(ENABLE_QRCODE "Enable QR code display" ON) | ||||
option(ENABLE_UPNP "Enable UPnP support" ON) | option(ENABLE_UPNP "Enable UPnP support" ON) | ||||
option(ENABLE_NOTIFICATIONS "Enable desktop notifications" ON) | option(ENABLE_NOTIFICATIONS "Enable desktop notifications" ON) | ||||
option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | ||||
# Allow usage of sanitizers by setting ECM_ENABLE_SANITIZERS | # Allow usage of sanitizers by setting ECM_ENABLE_SANITIZERS | ||||
if(ENABLE_SANITIZERS) | if(ENABLE_SANITIZERS) | ||||
set(ECM_ENABLE_SANITIZERS ${ENABLE_SANITIZERS}) | set(ECM_ENABLE_SANITIZERS ${ENABLE_SANITIZERS}) | ||||
# Handle the fuzzer sanitizer here. Because we don't want it to apply to any | |||||
# executable, remove it from the ECM list and apply only on desired targets. | |||||
list(REMOVE_ITEM ECM_ENABLE_SANITIZERS "fuzzer") | |||||
find_package(ECM NO_MODULE) | find_package(ECM NO_MODULE) | ||||
if(ECM_MODULE_PATH) | if(ECM_MODULE_PATH) | ||||
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) | list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) | ||||
include(ECMEnableSanitizers) | include(ECMEnableSanitizers) | ||||
else() | else() | ||||
message(FATAL_ERROR | message(FATAL_ERROR | ||||
"ECM is required to enable the sanitizers (https://api.kde.org/ecm/index.html)" | "ECM is required to enable the sanitizers (https://api.kde.org/ecm/index.html)" | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 513 Lines • Show Last 20 Lines |