fix add_library when included as a module

This commit is contained in:
a dinosaur 2025-02-25 18:24:05 +11:00
parent e79b1e853d
commit 66d8766eea

View File

@ -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)