Fix "unable to find library -lwsjt_fort_omp" on OpenMP-unsupported-platform (by JG1UAA)

This commit is contained in:
Uwe Risse 2022-02-11 10:52:20 +01:00
parent cab1bb8aed
commit 2e3cec2201

View File

@ -1444,7 +1444,7 @@ set_target_properties (wsjtx PROPERTIES
)
target_include_directories (wsjtx PRIVATE ${FFTW3_INCLUDE_DIRS})
if (APPLE)
if ((NOT ${OPENMP_FOUND}) OR APPLE)
target_link_libraries (wsjtx wsjt_fort)
else ()
target_link_libraries (wsjtx wsjt_fort_omp)