summaryrefslogtreecommitdiff
path: root/cmake/IdeSplitSources.cmake
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-19 08:48:08 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-22 09:27:59 -0500
commit84083dcc8bd41332ccac9d7b537f3e254d79011c (patch)
tree32bb3553065af17c88a549c186f9237748d594bb /cmake/IdeSplitSources.cmake
parentadcf638cca0a3b38f51a6d7c9b7ce479528cd854 (diff)
downloadlibgit2-84083dcc8bd41332ccac9d7b537f3e254d79011c.tar.gz
cmake: use CMAKE_SOURCE_DIR and CMAKE_BINARY_DIRethomson/cleanup
Instead of using the project-specific `libgit2_SOURCE_DIR` and `libgit2_BINARY_DIR` variables, use `CMAKE_SOURCE_DIR` and `CMAKE_BINARY_DIR`.
Diffstat (limited to 'cmake/IdeSplitSources.cmake')
-rw-r--r--cmake/IdeSplitSources.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/IdeSplitSources.cmake b/cmake/IdeSplitSources.cmake
index 4a55d89b0..9e16cbc5f 100644
--- a/cmake/IdeSplitSources.cmake
+++ b/cmake/IdeSplitSources.cmake
@@ -8,7 +8,7 @@ function(IDE_SPLIT_SOURCES target)
get_target_property(sources ${target} SOURCES)
foreach(source ${sources})
if(source MATCHES ".*/")
- string(REPLACE ${libgit2_SOURCE_DIR}/ "" rel ${source})
+ string(REPLACE ${CMAKE_SOURCE_DIR}/ "" rel ${source})
if(rel)
string(REGEX REPLACE "/([^/]*)$" "" rel ${rel})
if(rel)