Skip to content

Commit 89ec71e

Browse files
committed
Fix handling of dynamic includes using reserved config values.
1 parent 894b572 commit 89ec71e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/projectGenerator_pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ bool ProjectGenerator::passDynamicIncludeObject(uint& startPos, uint& endPos, st
183183
"Unknown dynamic configuration option (" + ident + ") used when passing object (" + tag + ")");
184184
return true;
185185
}
186-
if (option->m_value == compare) {
186+
if (option->m_value == compare ||
187+
m_configHelper.m_replaceList.find(ident) != m_configHelper.m_replaceList.end()) {
187188
// Check if the config option is for a reserved type
188189
if (m_configHelper.m_replaceList.find(ident) != m_configHelper.m_replaceList.end()) {
189190
m_replaceIncludes[tag].push_back(ident);

0 commit comments

Comments
 (0)