From 9334861e5c4086c04387b0e5b8361cf2cd005160 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Tue, 28 Feb 2017 10:44:21 +0100 Subject: [PATCH] corr CMake regex --- pub/utest/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub/utest/CMakeLists.txt b/pub/utest/CMakeLists.txt index 79a53c6d..1ced2ef6 100644 --- a/pub/utest/CMakeLists.txt +++ b/pub/utest/CMakeLists.txt @@ -37,6 +37,6 @@ list(SORT test_sources) foreach(test_src ${test_sources}) # remove directory path and suffix, to retain just the name of the test string(REGEX REPLACE ".*/" "" test_name "${test_src}") - string(REGEX REPLACE ".cpp$" "" test_name "${test_name}") + string(REGEX REPLACE "\\.cpp$" "" test_name "${test_name}") cxx_test(${test_name} "${test_link_libs}") endforeach(test_src) -- GitLab