[cmake] refactor: Use CPM over submodules #143
3 changed files with 13 additions and 10 deletions
6
externals/CMakeLists.txt
vendored
6
externals/CMakeLists.txt
vendored
|
@ -174,8 +174,7 @@ endif()
|
|||
CPMAddPackage(
|
||||
NAME VulkanHeaders
|
||||
VERSION 1.3.274
|
||||
GIT_REPOSITORY "https://github.com/KhronosGroup/Vulkan-Headers.git"
|
||||
GIT_TAG 89268a6d17
|
||||
URL "https://github.com/KhronosGroup/Vulkan-Headers/archive/89268a6d17.zip"
|
||||
)
|
||||
|
||||
# Vulkan-Utility-Libraries
|
||||
|
@ -187,8 +186,7 @@ endif()
|
|||
|
||||
CPMAddPackage(
|
||||
NAME VulkanUtilityLibraries
|
||||
GIT_REPOSITORY "https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git"
|
||||
GIT_TAG df2e358152
|
||||
URL "https://github.com/KhronosGroup/Vulkan-Utility-Libraries/archive/df2e358152.zip"
|
||||
)
|
||||
|
||||
# SPIRV-Tools
|
||||
|
|
1
externals/cubeb
vendored
Submodule
1
externals/cubeb
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit fa021607121360af7c171d881dc5bc8af7bb56eb
|
|
@ -1,11 +1,15 @@
|
|||
# SPDX-FileCopyrightText: 2025 Eden Emulator Project
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# TODO(crueter): Create a common CPMUtil.cmake that does this for me
|
||||
include(CPM)
|
||||
set(CPM_USE_LOCAL_PACKAGES ON)
|
||||
set(CPM_USE_LOCAL_PACKAGES OFF)
|
||||
CPMAddPackage(
|
||||
URI "gh:mozilla/cubeb#fa02160712"
|
||||
NAME cubeb
|
||||
URL "https://github.com/mozilla/cubeb/archive/fa02160712.zip"
|
||||
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
|
||||
OPTIONS
|
||||
"USE_SANITIZERS OFF"
|
||||
)
|
||||
|
||||
if (cubeb_ADDED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue