From 8c377b9c87cdff76118ed3f3afac727a451c6483 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 31 Jan 2015 11:37:01 +0000 Subject: [PATCH] The CMake FFTW3 finder should not look for a threaded library on Windows git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4918 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMake/Modules/FindFFTW3.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMake/Modules/FindFFTW3.cmake b/CMake/Modules/FindFFTW3.cmake index b242bc71b..97eff3edd 100644 --- a/CMake/Modules/FindFFTW3.cmake +++ b/CMake/Modules/FindFFTW3.cmake @@ -58,14 +58,14 @@ foreach (_comp ${_components}) endif (_comp STREQUAL "single") endforeach (_comp ${_components}) -# If using threads, we need to link against threaded libraries as well. -if (_use_threads) +# If using threads, we need to link against threaded libraries as well - except on Windows. +if (NOT WIN32 AND _use_threads) set (_thread_libs) foreach (_lib ${_libraries}) list (APPEND _thread_libs ${_lib}_threads) endforeach (_lib ${_libraries}) set (_libraries ${_thread_libs} ${_libraries}) -endif (_use_threads) +endif (NOT WIN32 AND _use_threads) # Keep a list of variable names that we need to pass on to # find_package_handle_standard_args().