How to enable OpenMP when using Qt creator

If I create a project from the Qt creator using the VS 2010 compiler, how to enable OpenMP (when creating from visual studio, you just enable this function) Thanks

+4
source share
1 answer

Try the following in your .pro file

in case of msvc2010

QMAKE_CXXFLAGS+= -openmp QMAKE_LFLAGS += -openmp 

or

 QMAKE_CXXFLAGS+= -fopenmp QMAKE_LFLAGS += -fopenmp 

in case of gcc

+13
source

Source: https://habr.com/ru/post/1402792/


All Articles