1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

Don't run qmllint if ECM_ENABLE_SANITIZERS is defined

This commit is contained in:
Johnny Jazeix 2020-01-03 18:45:01 +01:00
parent d0aa28a60d
commit e705eed415

View File

@ -11,18 +11,20 @@ add_custom_target(fake-target
# qmllint: qml static syntax checker
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
find_program(QMLLINT qmllint)
if(EXISTS "${QMLLINT}")
message("-- Found qmllint: ${QMLLINT}")
add_custom_command(TARGET latte-dock PRE_BUILD
COMMAND ${QMLLINT} ${QML_SRCS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Running qmllint")
if(NOT DEFINED ECM_ENABLE_SANITIZERS)
find_program(QMLLINT qmllint)
if(EXISTS "${QMLLINT}")
message("-- Found qmllint: ${QMLLINT}")
add_custom_command(TARGET latte-dock PRE_BUILD
COMMAND ${QMLLINT} ${QML_SRCS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Running qmllint")
else()
message("-- qmllint: QML Syntax verifier not found")
endif()
else()
message("-- qmllint: QML Syntax verifier not found")
message("-- Disable qmllint because ECM_ENABLE_SANITIZERS is defined")
endif()
message("-- Enabling QML debugging and profiling")
add_definitions(-DQT_QML_DEBUG)
add_definitions(-DQT_FATAL_WARNINGS)