mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
QCMake: use loadRelaxed if available
Added in 5.14 and load() was deprecated at the same time.
This commit is contained in:
@@ -340,7 +340,11 @@ void QCMake::interrupt()
|
||||
|
||||
bool QCMake::interruptCallback()
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
||||
return this->InterruptFlag.load();
|
||||
#else
|
||||
return this->InterruptFlag.loadRelaxed();
|
||||
#endif
|
||||
}
|
||||
|
||||
void QCMake::progressCallback(const std::string& msg, float percent)
|
||||
|
||||
Reference in New Issue
Block a user