summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMason McParlane <mcparlanem@objectcomputing.com>2020-08-14 17:20:45 -0400
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-18 18:24:43 +0000
commit57b928a1a5d98adc8c4ac0b1a241d87cbc7c43c3 (patch)
tree8afa1cde54003e8345a9353d30d0ebf6f24ac83b
parent4bf8e82d413815cd8ef076e7a5c65d0651a0e27a (diff)
Replace WIN32 with CMAKE_HOST_WIN32
The qt5_make_output_file routine joins paths together improperly on Windows when cross-compiling to a Unix target (Android). This change ensures the paths are set properly based on host machine instead of target. Fixes: QTBUG-86037 Pick-to: 5.15 Change-Id: I411b4f80296e989cd4fdf19799b731131defb2ca Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/corelib/Qt5CoreMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt5CoreMacros.cmake b/src/corelib/Qt5CoreMacros.cmake
index c973799140..f5766f8775 100644
--- a/src/corelib/Qt5CoreMacros.cmake
+++ b/src/corelib/Qt5CoreMacros.cmake
@@ -63,7 +63,7 @@ macro(qt5_make_output_file infile prefix ext outfile )
else()
file(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
endif()
- if(WIN32 AND rel MATCHES "^([a-zA-Z]):(.*)$") # absolute path
+ if(CMAKE_HOST_WIN32 AND rel MATCHES "^([a-zA-Z]):(.*)$") # absolute path
set(rel "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}")
endif()
set(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")