summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFoereaper <Foereaper@users.noreply.github.com>2023-01-28 10:59:54 +0100
committerGitHub <noreply@github.com>2023-01-28 10:59:54 +0100
commit4f395d12bb2a3474d372818285695255171119ac (patch)
treef5194be52026372f7b082562b70d0b268914e6a6 /CMakeLists.txt
parent9b59f35cb8a9f4051eae3422e9c1db4da9ead359 (diff)
fix(CMake/Module): module related cmake error (#14569)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea6bdb9713..20e1684c6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,7 @@ FOREACH(subdir ${sub_DIRS})
continue()
endif()
- STRING(REGEX REPLACE "^${CMAKE_SOURCE_DIR}/" "" subdir_rel ${subdir})
+ STRING(REPLACE "${CMAKE_SOURCE_DIR}/" "" subdir_rel ${subdir})
if(EXISTS "${subdir}/CMakeLists.txt")
add_subdirectory("${subdir_rel}")
endif()