mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-12 12:45:56 +00:00
add error check in cmake
This commit is contained in:
parent
321ed8b267
commit
06cae185c9
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
|||
file(GLOB QT_KITS LIST_DIRECTORIES true "C:/Qt/*/msvc*")
|
||||
list(SORT QT_KITS COMPARE NATURAL)
|
||||
list(REVERSE QT_KITS)
|
||||
list(GET QT_KITS 0 QT_PREFIX)
|
||||
if(QT_PREFIX)
|
||||
if(QT_KITS)
|
||||
list(GET QT_KITS 0 QT_PREFIX)
|
||||
set(CMAKE_PREFIX_PATH "${QT_PREFIX}" CACHE PATH "Qt prefix auto‑detected" FORCE)
|
||||
message(STATUS "Auto-detected Qt prefix: ${QT_PREFIX}")
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue