From 754d688ed83b3c6756bd38d0b57887a9d6d27e1b Mon Sep 17 00:00:00 2001 From: John Travers Date: Wed, 26 Sep 2018 09:05:02 +0100 Subject: [PATCH] Fix compiling omp tests --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3cfc209d..fbe452217 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -385,6 +385,11 @@ if (BUILD_TESTS) target_link_libraries (bench ${fftw3_lib}) endif () + if (ENABLE_OPENMP) + target_link_libraries (bench ${fftw3_lib}_omp) + else () + target_link_libraries (bench ${fftw3_lib}) + endif () enable_testing ()