summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-06-24 16:55:20 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-06-24 15:08:05 +0000
commita6576d97ca525034d47b9ae732b752c61f691ea0 (patch)
tree6ec9845cf80dcdeb3415bf2238641b0e5c563340 /cmake
parenta37771ebc58f2387b040dcc1e6a2053dbd43cf00 (diff)
Fix vcpkg default target triplet setting in the qt toolchain file
Due to scoping this variable needs to be written into the cache. Change-Id: I2704fe9ac138210571e0b7acada5eb5c65e265af Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBaseGlobalTargets.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake
index 34f2cfe635..d56cd44cb1 100644
--- a/cmake/QtBaseGlobalTargets.cmake
+++ b/cmake/QtBaseGlobalTargets.cmake
@@ -75,7 +75,7 @@ if(VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
endif()
if(VCPKG_TARGET_TRIPLET)
- list(APPEND init_vcpkg "set(VCPKG_TARGET_TRIPLET \"${VCPKG_TARGET_TRIPLET}\")")
+ list(APPEND init_vcpkg "set(VCPKG_TARGET_TRIPLET \"${VCPKG_TARGET_TRIPLET}\" CACHE STRING \"\")")
endif()
string(REPLACE ";" "\n" init_vcpkg "${init_vcpkg}")