From 66d8766eeabbd6ccfc6b7321fe21eeaf022e0d3e Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Tue, 25 Feb 2025 18:24:05 +1100 Subject: [PATCH] fix add_library when included as a module --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82512de..8a331a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "13.6" CACHE STRING "Minimum MacOS version" FORC set(CMAKE_Swift_LANGUAGE_VERSION 5) project(voxelotl LANGUAGES C OBJC Swift VERSION "0.1.0") -find_library(SDL3 SDL3 REQUIRED PATHS "${CMAKE_SOURCE_DIR}/Frameworks" NO_DEFAULT_PATH) +find_library(SDL3 SDL3 REQUIRED PATHS "${CMAKE_CURRENT_SOURCE_DIR}/Frameworks" NO_DEFAULT_PATH) add_subdirectory(Sources/SDLSwift) add_subdirectory(Sources/Voxelotl)