forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-openmp.patch
More file actions
19 lines (17 loc) · 748 Bytes
/
fix-openmp.patch
File metadata and controls
19 lines (17 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18f8460..065838c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -351,12 +351,12 @@ if (Threads_FOUND)
endif ()
if (OPENMP_FOUND)
- add_library (${fftw3_lib}_omp ${fftw_omp_SOURCE})
+ add_library (${fftw3_lib}_omp ${SOURCEFILES} ${fftw_omp_SOURCE})
target_include_directories (${fftw3_lib}_omp INTERFACE $<INSTALL_INTERFACE:include>)
target_link_libraries (${fftw3_lib}_omp ${fftw3_lib})
target_link_libraries (${fftw3_lib}_omp ${CMAKE_THREAD_LIBS_INIT})
list (APPEND subtargets ${fftw3_lib}_omp)
- target_compile_options (${fftw3_lib}_omp PRIVATE ${OpenMP_C_FLAGS})
+ target_link_libraries (${fftw3_lib}_omp OpenMP::OpenMP_C)
endif ()
foreach(subtarget ${subtargets})