From 3372d4fe9b92d2058aec4eaa34908af04a8537c9 Mon Sep 17 00:00:00 2001 From: FailCake Date: Tue, 18 May 2021 10:45:48 +0200 Subject: [PATCH] Fix sol2 cmake include failing as a dependency When using cmake `FetchContent` sol isn't the top level project, so it should use `CMAKE_CURRENT_SOURCE_DIR` instead of `CMAKE_SOURCE_DIR` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d093f75..d390bb49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ # # # Required minimum version statement cmake_minimum_required(VERSION 3.16.0) # # # Project Include - file that is included after project declaration is finished -set(CMAKE_PROJECT_INCLUDE "${CMAKE_SOURCE_DIR}/cmake/Includes/Project.cmake") +set(CMAKE_PROJECT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Includes/Project.cmake") # # # project declaration project(sol2 VERSION 4.0.0 LANGUAGES CXX C)