From 9cbd68fc71f8a3d6540db250c1e05be548e96e5d Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Fri, 2 Dec 2016 17:08:34 +0100 Subject: [PATCH] Fix building in paths that contain regex expressions Resolves #55 --- cmake/CreateSourceGroups.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CreateSourceGroups.cmake b/cmake/CreateSourceGroups.cmake index 788d5de..70b9b8d 100644 --- a/cmake/CreateSourceGroups.cmake +++ b/cmake/CreateSourceGroups.cmake @@ -4,7 +4,7 @@ # that replicate the folder hierarchy on disk function(create_source_groups source_files_variable) foreach(source_file ${${source_files_variable}}) - string( REGEX REPLACE ${CMAKE_CURRENT_SOURCE_DIR} "" relative_directory "${source_file}") + string( REPLACE ${CMAKE_CURRENT_SOURCE_DIR} "" relative_directory "${source_file}") string( REGEX REPLACE "[\\\\/][^\\\\/]*$" "" relative_directory "${relative_directory}") string( REGEX REPLACE "^[\\\\/]" "" relative_directory "${relative_directory}") if( WIN32 )