2
0
mirror of https://github.com/boostorg/cmake.git synced 2026-01-19 04:02:15 +00:00

Include Boost libraries on lines with trailing comment

This commit is contained in:
Alexander Grund
2025-09-12 09:35:50 +02:00
parent 40a47ae057
commit 44c75fbef2

View File

@@ -219,8 +219,8 @@ function(__boost_scan_dependencies lib var sub_folder)
foreach(line IN LISTS data)
if(line MATCHES "^[^#]*(Boost::[A-Za-z0-9_]+[^#]*)$")
string(REGEX MATCHALL "Boost::[A-Za-z0-9_]+" libs "${CMAKE_MATCH_0}")
if(line MATCHES "^[^#]*(Boost::[A-Za-z0-9_]+[^#]*)(#.*)?$")
string(REGEX MATCHALL "Boost::[A-Za-z0-9_]+" libs "${CMAKE_MATCH_1}")
foreach(dep IN LISTS libs)
string(REGEX REPLACE "^Boost::" "" dep ${dep})