Wrap condition in _qt_internal_check_depfile_support with parentheses
The AND/OR combinations are not evaluated correctly. Wrap them with parentheses explicitly to ensure the expected evaluation order. Pick-to: 6.6 6.5 Change-Id: Ib2515ba85417b32cef3f799e0cb2c89d2c4257ab Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 7ac969e1461478974f62a46a913d6cd2b34ed80a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
50417e36dd
commit
c11d505a89
@ -25,10 +25,13 @@ endfunction()
|
||||
# The function checks if add_custom_command has the support of the DEPFILE argument.
|
||||
function(_qt_internal_check_depfile_support out_var)
|
||||
if(CMAKE_GENERATOR MATCHES "Ninja" OR
|
||||
CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND CMAKE_GENERATOR MATCHES "Makefiles"
|
||||
OR CMAKE_VERSION VERSION_GREATER_EQUAL 3.21
|
||||
(CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND CMAKE_GENERATOR MATCHES "Makefiles")
|
||||
OR (CMAKE_VERSION VERSION_GREATER_EQUAL 3.21
|
||||
AND (CMAKE_GENERATOR MATCHES "Xcode"
|
||||
OR CMAKE_GENERATOR MATCHES "Visual Studio ([0-9]+)" AND CMAKE_MATCH_1 GREATER_EQUAL 12))
|
||||
OR (CMAKE_GENERATOR MATCHES "Visual Studio ([0-9]+)" AND CMAKE_MATCH_1 GREATER_EQUAL 12)
|
||||
)
|
||||
)
|
||||
)
|
||||
set(${out_var} TRUE)
|
||||
else()
|
||||
set(${out_var} FALSE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user