From d98f247c719af9ab81d469acaa66cbede4b3e8ae Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <joseph@walton-rivers.uk> Date: Thu, 21 Apr 2022 16:13:14 +0100 Subject: [PATCH] fix include paths --- fggl/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fggl/CMakeLists.txt b/fggl/CMakeLists.txt index 9d1e65d..968b063 100644 --- a/fggl/CMakeLists.txt +++ b/fggl/CMakeLists.txt @@ -1,6 +1,6 @@ # headers -file(GLOB_RECURSE HEADER_LIST CONFIGURE_DEPENDS "${fggl_SOURCE_DIR}/include/fggl/*.hpp" ) +file(GLOB_RECURSE HEADER_LIST CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/include/fggl/**.hpp" ) # the fggl library itself add_library(fggl ${HEADER_LIST}) @@ -8,7 +8,7 @@ add_library(fggl ${HEADER_LIST}) # we need to tell people using the library about our headers target_include_directories( fggl PUBLIC - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> ) -- GitLab