Fix build
parent
dd628b6af7
commit
6875bee519
|
@ -490,11 +490,16 @@ SOURCES += src/main.cpp
|
|||
|
||||
HEADERS += src/version.h
|
||||
|
||||
INCLUDEPATH += thirdparty/QuadriFlow
|
||||
INCLUDEPATH += thirdparty/QuadriFlow/src
|
||||
INCLUDEPATH += thirdparty/QuadriFlow/3rd/pcg32
|
||||
INCLUDEPATH += thirdparty/QuadriFlow/3rd/pss
|
||||
INCLUDEPATH += thirdparty/QuadriFlow/3rd/lemon-1.3.1
|
||||
|
||||
win32 {
|
||||
# Fix error LNK2001: unresolved external symbol "struct lemon::Invalid const lemon::INVALID" (?INVALID@lemon@@3UInvalid@1@B)
|
||||
DEFINES += LEMON_ONLY_TEMPLATES
|
||||
}
|
||||
|
||||
SOURCES += thirdparty/QuadriFlow/src/adjacent-matrix.cpp
|
||||
HEADERS += thirdparty/QuadriFlow/src/adjacent-matrix.hpp
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ unsigned long long inline GetCurrentTime64() {
|
|||
} // namespace qflow
|
||||
|
||||
// The following make_unique is to fix CXX14 in CXX11
|
||||
#ifndef _WIN32
|
||||
#include <memory>
|
||||
namespace std {
|
||||
template<typename T, typename... Args>
|
||||
|
@ -40,5 +41,6 @@ std::unique_ptr<T> make_unique(Args&&... args)
|
|||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue