Skip to content

Commit dab309f

Browse files
committed
Add stdbit compat detection.
1 parent d7717f0 commit dab309f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/projectGenerator_build.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ void ProjectGenerator::buildDependencyValues(StaticList& includeDirs, StaticList
263263
atomicCompatFile = atomicCompatFile.substr(0, ++pos);
264264
includeDirs.push_back("$(ProjectDir)/" + atomicCompatFile);
265265
}
266+
string bitCompatFile = m_configHelper.m_rootDirectory + "compat/stdbit/stdbit.h";
267+
if (findFile(bitCompatFile, dep)) {
268+
m_configHelper.makeFileProjectRelative(bitCompatFile, bitCompatFile);
269+
uint pos = bitCompatFile.rfind('/'); // Get path only
270+
bitCompatFile = bitCompatFile.substr(0, ++pos);
271+
includeDirs.push_back("$(ProjectDir)/" + bitCompatFile);
272+
}
266273

267274
// Add root directory
268275
if (m_configHelper.m_rootDirectory != "./" && m_configHelper.m_rootDirectory != "../") {

0 commit comments

Comments
 (0)