From 4f395d12bb2a3474d372818285695255171119ac Mon Sep 17 00:00:00 2001 From: Foereaper Date: Sat, 28 Jan 2023 10:59:54 +0100 Subject: fix(CMake/Module): module related cmake error (#14569) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3