From 5c51e5b84826e6035ac4c50f7944b000353cca64 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Wed, 1 Jan 2020 19:38:11 +0930 Subject: [PATCH] Support OpenMP on Ubuntu --- dust3d.pro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dust3d.pro b/dust3d.pro index 13ff6b51..1fc04c89 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -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