Merge pull request #44 from QuasarApp/qt_logger

remove deprecated macrosses
This commit is contained in:
Andrei Yankovich 2024-06-24 13:34:28 +02:00 committed by GitHub
commit e59bc728b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,23 +38,13 @@ endif()
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
option(QA_ASSERT_ON_WARN "Enable for add assert to every warning message" OFF)
option(QA_ASSERT_ON_ERROR "Enable for add assert to every error message" OFF)
option(QA_ALLOW_NOT_SUPPORTED_OPTIONS "Enable for allow any command line options" ON)
option(QA_DISABLE_LOG "Disabled all logs (force sets verbose to 0)" OFF)
if (QA_ASSERT_ON_WARN)
add_definitions(-DQA_ASSERT_ON_WARN)
endif()
if (QA_DISABLE_LOG)
add_definitions(-DQA_DISABLE_LOG)
endif()
if (QA_ASSERT_ON_ERROR)
add_definitions(-DQA_ASSERT_ON_ERROR)
endif()
if (QA_ALLOW_NOT_SUPPORTED_OPTIONS)
add_definitions(-DQA_ALLOW_NOT_SUPPORTED_OPTIONS)
endif()