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.5 6.6 6.7 Change-Id: Ib2515ba85417b32cef3f799e0cb2c89d2c4257ab Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
cff5a49cc2
commit
7ac969e146
@ -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