Searching for Vulkan before QT6, so it doesn't messes with Vulkan.

This commit is contained in:
Lucas Clemente Vella 2024-03-23 11:37:50 +00:00 committed by Exverge
parent 77813b232e
commit a9312c837e
No known key found for this signature in database
GPG Key ID: 19AAFC0AC6A9B35A
1 changed files with 3 additions and 1 deletions

View File

@ -374,6 +374,9 @@ if(ENABLE_QT6 AND Qt6_LOCATION)
list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}")
endif() endif()
# QT6 searches for Vulkan::Headers, too, so we have to define it before QT6 has a chance to do it.
add_subdirectory(externals)
function(set_suyu_qt_components) function(set_suyu_qt_components)
# Best practice is to ask for all components at once, so they are from the same version # Best practice is to ask for all components at once, so they are from the same version
set(SUYU_QT_COMPONENTS2 Core Widgets Concurrent) set(SUYU_QT_COMPONENTS2 Core Widgets Concurrent)
@ -709,7 +712,6 @@ if (SUYU_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif() endif()
endif() endif()
add_subdirectory(externals)
add_subdirectory(src) add_subdirectory(src)
# Set suyu project or suyu-cmd project as default StartUp Project in Visual Studio depending on whether QT is enabled or not # Set suyu project or suyu-cmd project as default StartUp Project in Visual Studio depending on whether QT is enabled or not