add options for fftw3 precisions
configureFromFullPathDevice for all devices now trim() components
This commit is contained in:
@@ -69,6 +69,9 @@ option(STD_IOSTREAM "Building with std iostream operators support" OFF)
|
||||
option(INTROSPECTION "Build with introspection" OFF)
|
||||
option(TESTS "Build tests and perform their before install step" OFF)
|
||||
option(COVERAGE "Build project with coverage info" OFF)
|
||||
option(PIP_FFTW_F "Support fftw module for float" ON)
|
||||
option(PIP_FFTW_L "Support fftw module for long double" ON)
|
||||
option(PIP_FFTW_Q "Support fftw module for quad double" OFF)
|
||||
set(PIP_UTILS 1)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
@@ -436,8 +439,23 @@ if (NOT CROSSTOOLS)
|
||||
if (PIP_BUILD_FFTW)
|
||||
# Check if PIP support fftw3 for PIFFT using in math module
|
||||
set(FFTW_LIB_NAME fftw3)
|
||||
set(FFTW_LIB_SUFFIXES "" "f" "l" "q")
|
||||
set(FFTW_LIB_SUFFIXES "")
|
||||
if (PIP_FFTW_F)
|
||||
list(APPEND FFTW_LIB_SUFFIXES "f")
|
||||
endif()
|
||||
if (PIP_FFTW_L)
|
||||
list(APPEND FFTW_LIB_SUFFIXES "l")
|
||||
endif()
|
||||
if (PIP_FFTW_Q)
|
||||
list(APPEND FFTW_LIB_SUFFIXES "q")
|
||||
endif()
|
||||
if (NOT "${FFTW_LIB_SUFFIXES}" STREQUAL "")
|
||||
set(FFTW_LIB_SUFFIXES ";${FFTW_LIB_SUFFIXES}")
|
||||
else()
|
||||
list(APPEND FFTW_LIB_SUFFIXES "" "_")
|
||||
endif()
|
||||
set(FFTW_LIB_SUFFIXES2 "" "-3")
|
||||
set(FFTW_MSG "")
|
||||
set(FFTW_LIBS)
|
||||
set(FFTW_ABS_LIBS)
|
||||
set(CMAKE_REQUIRED_INCLUDES fftw3.h)
|
||||
@@ -452,6 +470,10 @@ if (NOT CROSSTOOLS)
|
||||
set(${FFTW_CLN}_FOUND FALSE)
|
||||
set(${FFTW_CLNT}_FOUND FALSE)
|
||||
if(${FFTW_CLN}_LIBRARIES)
|
||||
if (NOT "${FFTW_MSG}" STREQUAL "")
|
||||
set(FFTW_MSG "${FFTW_MSG}, ")
|
||||
endif()
|
||||
set(FFTW_MSG "${FFTW_MSG}${FFTW_CLN}")
|
||||
set(${FFTW_CLN}_FOUND TRUE)
|
||||
list(APPEND FFTW_LIBS "${FFTW_CLN}")
|
||||
list(APPEND FFTW_ABS_LIBS "${${FFTW_CLN}_LIBRARIES}")
|
||||
@@ -475,7 +497,7 @@ if (NOT CROSSTOOLS)
|
||||
endforeach()
|
||||
endforeach()
|
||||
if(FFTW_LIBS)
|
||||
pip_module(fftw "${FFTW_LIBS}" "PIP FFTW support" "" "" "")
|
||||
pip_module(fftw "${FFTW_LIBS}" "PIP FFTW support" "" "" " (${FFTW_MSG})")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user