1a9d77761e
The qtquick-config.h file was being generated empty by the cmake build, causing 'division by zero in #if' errors in downstream consumers (SDDM, KWin) because QT_CONFIG(quick_shadereffect) and QT_CONFIG(quick_draganddrop) were undefined. Two fixes: 1. Explicitly enable QT_FEATURE_quick_shadereffect and QT_FEATURE_quick_draganddrop in the cmake configuration. 2. Add a safety net that regenerates qtquick-config.h with the required feature definitions if cmake produces an empty file.
40 lines
578 B
CMake
40 lines
578 B
CMake
cmake_minimum_required(VERSION 3.16...3.29)
|
|
|
|
project(lcms2
|
|
VERSION 2.19
|
|
LANGUAGES C
|
|
)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
|
|
|
include(Lcms2Options)
|
|
include(Lcms2Features)
|
|
include(Lcms2Library)
|
|
include(Lcms2Tools)
|
|
include(Lcms2Plugins)
|
|
include(Lcms2Tests)
|
|
include(Lcms2Packaging)
|
|
|
|
lcms2_setup_options()
|
|
lcms2_detect_features()
|
|
|
|
if(LCMS2_BUILD_TESTS)
|
|
enable_testing()
|
|
endif()
|
|
|
|
lcms2_add_library()
|
|
|
|
if(LCMS2_BUILD_TOOLS)
|
|
lcms2_add_tools()
|
|
endif()
|
|
|
|
lcms2_add_plugins()
|
|
|
|
if(LCMS2_BUILD_TESTS)
|
|
lcms2_add_tests()
|
|
endif()
|
|
|
|
lcms2_setup_packaging()
|
|
|
|
|