Skip to content

Commit 44c75fb

Browse files
committed
Include Boost libraries on lines with trailing comment
1 parent 40a47ae commit 44c75fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/BoostRoot.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ function(__boost_scan_dependencies lib var sub_folder)
219219

220220
foreach(line IN LISTS data)
221221

222-
if(line MATCHES "^[^#]*(Boost::[A-Za-z0-9_]+[^#]*)$")
223-
string(REGEX MATCHALL "Boost::[A-Za-z0-9_]+" libs "${CMAKE_MATCH_0}")
222+
if(line MATCHES "^[^#]*(Boost::[A-Za-z0-9_]+[^#]*)(#.*)?$")
223+
string(REGEX MATCHALL "Boost::[A-Za-z0-9_]+" libs "${CMAKE_MATCH_1}")
224224

225225
foreach(dep IN LISTS libs)
226226
string(REGEX REPLACE "^Boost::" "" dep ${dep})

0 commit comments

Comments
 (0)