Skip to content

Commit

Permalink
[publish] Add qtpaths.bat workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
hmartinez82 committed Oct 10, 2023
1 parent f80468d commit f9ba0a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ environment:
msvcname: Visual Studio 15 2017
cmake_args:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
qtver: 6.5
qtver: 6.5.2
qtbin: msvc2019_arm64
msvcname: Visual Studio 17 2022
cmake_args: -A ARM64 -DSTELLARIUM_BUILD_ARM64=ON -DQT_HOST_PATH=C:/Qt/6.5/msvc2019_64 -DENABLE_QTWEBENGINE=OFF
cmake_args: -A ARM64 -DSTELLARIUM_BUILD_ARM64=ON -DQT_HOST_PATH=C:/Qt/6.5.2/msvc2019_64 -DENABLE_QTWEBENGINE=OFF -DENABLE_NLS=OFF -DQT_PATHS=%APPVEYOR_BUILD_FOLDER%/util/qtpaths_workaround.bat

before_build:
- ps: if($env:qtbin.contains('_64')) { $env:BITS=64 } else { $env:BITS=32 }
Expand Down
7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,10 @@ IF(WIN32)
SET(VIRTUAL_KBD_SETTING "--no-virtualkeyboard")
ENDIF()

IF(STELLARIUM_BUILD_ARM64)
cmake_path(APPEND QT_PATHS ${QT6_INSTALL_PREFIX} "bin" "qtpaths.bat")
ENDIF()
# Use external workaround until https://github.com/appveyor/ci/issues/3892 is addressed
# IF(STELLARIUM_BUILD_ARM64)
# cmake_path(APPEND QT_PATHS ${QT6_INSTALL_PREFIX} "bin" "qtpaths.bat")
# ENDIF()
IF(QT_PATHS)
SET(_qt_paths "--qtpaths \"${QT_PATHS}\"")
ELSE()
Expand Down
2 changes: 2 additions & 0 deletions util/qtpaths_workaround.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
C:\Qt\6.5.2\msvc2019_64\bin\qtpaths6.exe -qtconf "C:\Qt\6.5.2\msvc2019_arm64\bin\target_qt.conf" %*

0 comments on commit f9ba0a8

Please sign in to comment.