Replace -lomp with -fopenmp (#187)

* Replace -lomp with -fopenmp

* Restore -lomp for OSX

Travis build indicates it does not recognize -fopenmp.
This commit is contained in:
turboencabulator 2021-11-03 20:47:18 -05:00 committed by GitHub
parent 682d49dc13
commit 556edb3245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,6 @@ matrix:
- g++-7 - g++-7
- gcc-7 - gcc-7
- libfftw3-dev - libfftw3-dev
- libomp-dev
- qt5-default - qt5-default
- libusb-1.0-0-dev - libusb-1.0-0-dev
env: env:

View File

@ -360,7 +360,8 @@ DISTFILES += \
build_android/package_source/res/xml/device_filter.xml build_android/package_source/res/xml/device_filter.xml
# Vincenzo added these to get multithreading on Unix fftw # Vincenzo added these to get multithreading on Unix fftw
unix: LIBS += -lomp unix:!macx: LIBS += -fopenmp
macx: LIBS += -lomp
unix: LIBS += -lfftw3f_omp unix: LIBS += -lfftw3f_omp
unix: LIBS += -lfftw3_threads unix: LIBS += -lfftw3_threads
macx: INCLUDEPATH += /usr/local/include macx: INCLUDEPATH += /usr/local/include