rcc: fix build when cross-compiling
The zstd feature is now public, which enabled it in rcc even when rcc was cross-compiled, but rcc was not linked agaist zstd library. There is no need to test for cross-compilation anymore or to add the extra define. Amends eda4919f252c53f313441afbedb4d0f98e94c9a Pick-to: 6.4 6.3 6.2 Change-Id: I23987ae0903759cf4f3fd17059c71c8815b8d908 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
e1f25b1c8d
commit
d56f80fd9a
@ -28,14 +28,7 @@ qt_internal_return_unless_building_tools()
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_extend_target(${target_name} CONDITION QT_FEATURE_zstd AND NOT CMAKE_CROSSCOMPILING
|
||||
DEFINES
|
||||
QT_FEATURE_zstd=1
|
||||
qt_internal_extend_target(${target_name} CONDITION QT_FEATURE_zstd
|
||||
LIBRARIES
|
||||
WrapZSTD::WrapZSTD
|
||||
)
|
||||
|
||||
qt_internal_extend_target(${target_name} CONDITION CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_zstd
|
||||
DEFINES
|
||||
QT_FEATURE_zstd=-1
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user