fix(CMake/Module): module related cmake error (#14569)

This commit is contained in:
Foereaper 2023-01-28 10:59:54 +01:00 committed by GitHub
parent 9b59f35cb8
commit 4f395d12bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()