Jeanno
Jeanno

Reputation: 2859

How to turn on OpenMP when using Qt creator

If I am building the project from Qt creator using VS 2010 compiler, how do i enable OpenMP (when building from visual studio you just enable the feature) Thanks

Upvotes: 8

Views: 14276

Answers (1)

alexksv
alexksv

Reputation: 186

Try next in your .pro file

in case msvc2010

QMAKE_CXXFLAGS+= -openmp
QMAKE_LFLAGS +=  -openmp

or

QMAKE_CXXFLAGS+= -fopenmp
QMAKE_LFLAGS +=  -fopenmp

in case gcc

Upvotes: 17

Related Questions