diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-19 08:48:08 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-22 09:27:59 -0500 |
commit | 84083dcc8bd41332ccac9d7b537f3e254d79011c (patch) | |
tree | 32bb3553065af17c88a549c186f9237748d594bb /cmake/IdeSplitSources.cmake | |
parent | adcf638cca0a3b38f51a6d7c9b7ce479528cd854 (diff) | |
download | libgit2-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.cmake | 2 |
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) |