From 10ef35ecf3f700badf9b773b06110ce073ae24ef Mon Sep 17 00:00:00 2001
From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com>
Date: Tue, 23 Aug 2022 18:12:23 +0200
Subject: [PATCH] Fix cmake paths so we can use Arbor as a sub-project. (#1948)

---
 cmake/CompilerOptions.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/CompilerOptions.cmake b/cmake/CompilerOptions.cmake
index 6c1b8eb5..5a8b2bca 100644
--- a/cmake/CompilerOptions.cmake
+++ b/cmake/CompilerOptions.cmake
@@ -160,7 +160,7 @@ function(export_visibility target)
     # generate config file
     get_target_property(target_binary_dir ${target} BINARY_DIR)
     configure_file(
-        ${CMAKE_SOURCE_DIR}/cmake/export.hpp.in
+        ${PROJECT_SOURCE_DIR}/cmake/export.hpp.in
         ${target_binary_dir}/include/${target_short_name}/export.hpp
         @ONLY)
 endfunction()
-- 
GitLab