Skip to content

Commit

Permalink
ENH: Do not pollute the global link_directories namespace
Browse files Browse the repository at this point in the history
link_directories and include_directories affects
every subsequent compile invocation.  Explicitly
include link/include directories only where needed.
  • Loading branch information
hjmjohnson committed Jul 7, 2020
1 parent 880a932 commit 708c837
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CMake/itkExternal_FFTW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ endif()
set(FFTW_OPTIMIZATION_CONFIGURATION "" CACHE INTERNAL "architecture flags: --enable-sse --enable-sse2 --enable-altivec --enable-mips-ps --enable-cell")
if(ITK_USE_SYSTEM_FFTW)
find_package( FFTW )
link_directories(${FFTW_LIBDIR})
else()

if(WIN32 AND NOT MINGW)
Expand Down Expand Up @@ -148,8 +147,6 @@ else()
endif()
set(FFTW_INCLUDE_PATH ${ITK_BINARY_DIR}/fftw/include)
set(FFTW_LIBDIR ${ITK_BINARY_DIR}/fftw/lib)
link_directories(${FFTW_LIBDIR})
include_directories(${FFTW_INCLUDE_PATH})
#
# copy libraries into install tree
install(CODE
Expand Down

0 comments on commit 708c837

Please sign in to comment.