Skip to content

Commit d29bce5

Browse files
committed
Build: Enable OpenMP support in .pro file
1 parent 05f663c commit d29bce5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libretroshare.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ linux-* {
167167
CONFIG += link_pkgconfig
168168

169169
QMAKE_CXXFLAGS *= -D_FILE_OFFSET_BITS=64
170+
QMAKE_CXXFLAGS += -fopenmp
171+
LIBS += -fopenmp
170172
QMAKE_CC = $${QMAKE_CXX}
171173

172174
no_sqlcipher {
@@ -242,6 +244,8 @@ win32-x-g++ {
242244
################################# Windows ##########################################
243245

244246
win32-g++|win32-clang-g++ {
247+
QMAKE_CXXFLAGS += -fopenmp
248+
LIBS += -fopenmp
245249
QMAKE_CC = $${QMAKE_CXX}
246250
OBJECTS_DIR = temp/obj
247251
MOC_DIR = temp/moc

0 commit comments

Comments
 (0)