Unify the CMake config for QTZP_icu.cpp

The two differed only in one selecting UNIX, the other WIN32; not sure
we have any platforms for which neither of those conditions is true
but, in any case, if such a platform has ICU and enables feature
timezone, I guess we should be using ICU for its timezone backend.

Change-Id: I3a7812c143f18732bf4dae7e8de8e42a662f0f39
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2024-02-02 09:54:13 +01:00
parent 46c1936e17
commit 56d8a751cb

View File

@ -898,12 +898,9 @@ qt_internal_extend_target(Core CONDITION QT_FEATURE_timezone AND UNIX AND NOT AN
time/qtimezoneprivate_tz.cpp time/qtimezoneprivate_tz.cpp
) )
qt_internal_extend_target(Core CONDITION QT_FEATURE_icu AND QT_FEATURE_timezone AND UNIX AND NOT ANDROID AND NOT APPLE qt_internal_extend_target(Core
SOURCES CONDITION
time/qtimezoneprivate_icu.cpp QT_FEATURE_icu AND QT_FEATURE_timezone AND NOT ANDROID AND NOT APPLE
)
qt_internal_extend_target(Core CONDITION QT_FEATURE_icu AND QT_FEATURE_timezone AND WIN32 AND NOT ANDROID AND NOT APPLE
SOURCES SOURCES
time/qtimezoneprivate_icu.cpp time/qtimezoneprivate_icu.cpp
) )