Commit ba01fcf2 authored by Guillaume Pasero's avatar Guillaume Pasero

SuperBuild: FFTW: use combined threads for windows

parent 579e3a9f
......@@ -27,6 +27,12 @@ set(FFTWD_SB_SRC ${CMAKE_BINARY_DIR}/FFTW/src/FFTWD)
set(FFTWF_SB_BUILD ${CMAKE_BINARY_DIR}/FFTW/build/FFTWF)
set(FFTWD_SB_BUILD ${CMAKE_BINARY_DIR}/FFTW/build/FFTWD)
if(WIN32)
set(FFTW_SB_CONFIG -DWITH_COMBINED_THREADS:BOOL=ON)
else()
set(FFTW_SB_CONFIG -DWITH_COMBINED_THREADS:BOOL=OFF)
endif()
# Compile the float version of FFTW
ExternalProject_Add(FFTWF
PREFIX FFTW/FFTWF
......@@ -44,6 +50,7 @@ ExternalProject_Add(FFTWF
-DENABLE_THREADS:BOOL=ON
-DENABLE_SSE2:BOOL=ON
-DENABLE_FLOAT:BOOL=ON
${FFTW_SB_CONFIG}
DEPENDS ${FFTW_DEPENDENCIES}
LOG_DOWNLOAD 1
LOG_CONFIGURE 1
......@@ -51,8 +58,6 @@ ExternalProject_Add(FFTWF
LOG_INSTALL 1
)
# SUPERBUILD_PATCH_SOURCE(FFTWF)
# Compile the double version of FFTW
ExternalProject_Add(FFTWD
PREFIX FFTW/FFTWD
......@@ -70,6 +75,7 @@ ExternalProject_Add(FFTWD
-DENABLE_THREADS:BOOL=ON
-DENABLE_SSE2:BOOL=ON
-DENABLE_FLOAT:BOOL=OFF
${FFTW_SB_CONFIG}
DEPENDS FFTWF
LOG_DOWNLOAD 1
LOG_CONFIGURE 1
......@@ -77,8 +83,6 @@ ExternalProject_Add(FFTWD
LOG_INSTALL 1
)
# SUPERBUILD_PATCH_SOURCE(FFTWD)
ExternalProject_Add(FFTW
PREFIX FFTW
DOWNLOAD_COMMAND ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment