Support OpenMP on Ubuntu

master
Jeremy Hu 2020-01-01 19:38:11 +09:30
parent 083b78bcdc
commit 5c51e5b848
1 changed files with 6 additions and 0 deletions

View File

@ -517,6 +517,12 @@ win32 {
DEFINES += WITH_OMP
}
unix:!macx {
QMAKE_CXXFLAGS += -fopenmp
DEFINES += WITH_OMP
LIBS += -lgomp
}
win32 {
# Fix error LNK2001: unresolved external symbol "struct lemon::Invalid const lemon::INVALID" (?INVALID@lemon@@3UInvalid@1@B)
DEFINES += LEMON_ONLY_TEMPLATES