From 708c837788bfe33afe7ae5813a50e1b414174f94 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Tue, 7 Jul 2020 08:53:22 -0500 Subject: [PATCH] ENH: Do not pollute the global link_directories namespace link_directories and include_directories affects every subsequent compile invocation. Explicitly include link/include directories only where needed. --- CMake/itkExternal_FFTW.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMake/itkExternal_FFTW.cmake b/CMake/itkExternal_FFTW.cmake index 090c744f439..2b8981d173b 100644 --- a/CMake/itkExternal_FFTW.cmake +++ b/CMake/itkExternal_FFTW.cmake @@ -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) @@ -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