Skip to content

Commit 75af6cd

Browse files
sean-parentCopilot
andauthored
Update cpp-library.cmake
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 86be78a commit 75af6cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp-library.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function(_cpp_library_setup_executables)
6060
cmake_parse_arguments(ARG "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
6161

6262
# Extract the clean library name for linking (strip namespace prefix if present)
63-
string(REGEX REPLACE "^${ARG_NAMESPACE}-" "" CLEAN_NAME "${ARG_NAME}")
63+
string(REPLACE "${ARG_NAMESPACE}-" "" CLEAN_NAME "${ARG_NAME}")
6464

6565
# Download doctest dependency via CPM
6666
if(NOT TARGET doctest::doctest)

0 commit comments

Comments
 (0)