CMake: Fix macOS -no-feature-sessionmanager build with CMake < 3.25
Work around CMake issue 23464. Task-number: QTBUG-99957 Change-Id: I116754345190d9cd15154fcd50b1add0f625d520 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
bf15cf1cfa
commit
28d390d30d
@ -107,3 +107,10 @@ qt_internal_extend_target(QCocoaIntegrationPlugin CONDITION QT_FEATURE_sessionma
|
||||
SOURCES
|
||||
qcocoasessionmanager.cpp qcocoasessionmanager.h
|
||||
)
|
||||
|
||||
# Work around CMake issue 23464
|
||||
if(CMAKE_VERSION VERSION_LESS "3.25" AND NOT QT_FEATURE_sessionmanager)
|
||||
set_target_properties(QCocoaIntegrationPlugin PROPERTIES
|
||||
DISABLE_PRECOMPILE_HEADERS ON
|
||||
)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user