Commit bcc06cc4 authored by Dave Moxey's avatar Dave Moxey

Change source file properties to avoid recompiling entire library when FFTW is enabled

parent c73d0600
......@@ -20,10 +20,8 @@ IF( NEKTAR_USE_FFTW )
)
SET(FFTW_LIB fftw3)
MARK_AS_ADVANCED(FFTW_LIB)
INCLUDE_DIRECTORIES(${TPSRC}/dist/include)
MESSAGE(STATUS "Build FFTW: ${TPSRC}/dist/lib/lib${FFTW_LIB}.so")
ELSE ()
INCLUDE (FindFFTW)
INCLUDE_DIRECTORIES(${FFTW_INCLUDE_DIR})
ENDIF()
ENDIF( NEKTAR_USE_FFTW )
......@@ -365,6 +365,7 @@ TARGET_LINK_LIBRARIES(LibUtilities LINK_PRIVATE ${METIS_LIB})
# FFTW
IF( NEKTAR_USE_FFTW )
TARGET_LINK_LIBRARIES(LibUtilities LINK_PUBLIC ${FFTW_LIB})
SET_SOURCE_FILES_PROPERTIES(./FFT/NekFFTW.cpp PROPERTIES INCLUDE_DIRECTORIES ${FFTW_INCLUDE_DIR})
ENDIF( NEKTAR_USE_FFTW )
# ARPACK
......
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