From aa6f919b6746467d6d9d2d0eb4e02dbdefd296c6 Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Sat, 10 Feb 2024 07:55:48 +0100 Subject: [PATCH] ide: fix parsing of file paths --- ide.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide.cmake b/ide.cmake index 76e757e2d..e1f4dc1e5 100644 --- a/ide.cmake +++ b/ide.cmake @@ -45,9 +45,9 @@ function(ADD_GROUP GROUP_NAME FILENAMES) foreach(filename ${${FILENAMES}}) get_filename_component(filenamePath ${filename} PATH) get_filename_component(filenameName ${filename} NAME) - string(REGEX REPLACE "${PROJECT_BINARY_DIR}" "" filenamePath + string(REGEX REPLACE "${PROJECT_BINARY_DIR}/" "" filenamePath "${filenamePath}/") - string(REGEX REPLACE "${PROJECT_SOURCE_DIR}" "" filenamePath + string(REGEX REPLACE "${PROJECT_SOURCE_DIR}/" "" filenamePath "${filenamePath}/") string(REGEX REPLACE "//" "/" filenamePath ${filenamePath}) list(APPEND REDUCED_FILENAMES ${filenamePath})