From f9c400fb1c9bb8f2f76484b1a398135175d87a7f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 8 Dec 2023 14:11:19 -0800 Subject: [PATCH] build: tweak search path for embedding Correct the path to allow using swift-collections embedded in a larger project. This is meant to assist with building LSP with vendored dependencies. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9d9272b..6661eea4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ cmake_minimum_required(VERSION 3.16) project(SwiftCollections LANGUAGES C Swift) -list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) +list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift) set(CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)