summaryrefslogtreecommitdiff
path: root/cmake/Anope.cmake
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-12-14 11:10:20 +0000
committerSadie Powell <sadie@witchery.services>2021-12-14 11:11:22 +0000
commit6a7488edc10b8c363c784ac8b342fae8cf0f7e75 (patch)
treea3c45c6e1148028c3d09c8329fb715b3cc699293 /cmake/Anope.cmake
parent4af8dfa5495a76fe0c5e281a06dd5ea8efc584de (diff)
Remove double escaping in CMake regex matching.
This is not needed now we use regex matching directly instead of via the CMake 2.4 function wrapper. Fixes building extra modules.
Diffstat (limited to 'cmake/Anope.cmake')
-rw-r--r--cmake/Anope.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Anope.cmake b/cmake/Anope.cmake
index d8a8007c8..06c01525a 100644
--- a/cmake/Anope.cmake
+++ b/cmake/Anope.cmake
@@ -198,9 +198,9 @@ macro(calculate_libraries SRC SRC_LDFLAGS EXTRA_DEPENDS)
set(LIBRARIES)
# Check to see if there are any lines matching: /* RequiredLibraries: [something] */
if(WIN32)
- file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\\\*[ \t]*RequiredWindowsLibraries:[ \t]*.*[ \t]*\\\\*/")
+ file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\*[ \t]*RequiredWindowsLibraries:[ \t]*.*[ \t]*\\*/")
else()
- file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\\\*[ \t]*RequiredLibraries:[ \t]*.*[ \t]*\\\\*/")
+ file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\*[ \t]*RequiredLibraries:[ \t]*.*[ \t]*\\*/")
endif()
# Iterate through those lines
foreach(REQUIRED_LIBRARY ${REQUIRED_LIBRARIES})
@@ -267,7 +267,7 @@ macro(check_functions SRC SUCCESS)
# Default to true
set(${SUCCESS} TRUE)
# Check to see if there are any lines matching: /* RequiredFunctions: [something] */
- file(STRINGS ${SRC} REQUIRED_FUNCTIONS REGEX "/\\\\*[ \t]*RequiredFunctions:[ \t]*.*[ \t]*\\\\*/")
+ file(STRINGS ${SRC} REQUIRED_FUNCTIONS REGEX "/\\*[ \t]*RequiredFunctions:[ \t]*.*[ \t]*\\*/")
# Iterate through those lines
foreach(REQUIRED_FUNCTION ${REQUIRED_FUNCTIONS})
# Strip off the /* RequiredFunctions: and */ from the line