Permalink
Browse files

BUG: Fix FFTW install paths in ITKConfig.cmake (ITK-2995).

Change-Id: Ibf284cc918f3975de3ee8222dddb71a876aa6566
  • Loading branch information...
1 parent aa8b737 commit 95724b8557ea796aa5b01aa55f16b845e2b57e1c @thewtex thewtex committed Feb 4, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 CMakeLists.txt
View
@@ -613,6 +613,11 @@ set(ITK_USE_FILE "\${ITK_INSTALL_PREFIX}/${ITK_INSTALL_PACKAGE_DIR}/UseITK.cmake
set(ITK_CONFIG_TARGETS_CONDITION "")
set(ITK_CONFIG_TARGETS_FILE "\${ITK_INSTALL_PREFIX}/${ITK_INSTALL_PACKAGE_DIR}/ITKTargets.cmake")
set(ITK_CONFIG_MODULE_API_FILE "\${ITK_INSTALL_PREFIX}/${ITK_INSTALL_PACKAGE_DIR}/ITKModuleAPI.cmake")
+if(NOT ITK_USE_SYSTEM_FFTW)
+ # Location installed with the FFTW ExternalProject.
+ set(FFTW_LIBDIR "\${ITK_INSTALL_PREFIX}/lib/ITK-${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}")
+ set(FFTW_INCLUDE_PATH "\${ITK_INSTALL_PREFIX}/include/ITK-${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}/Algorithms")
+endif()
configure_file(CMake/ITKConfig.cmake.in CMakeFiles/ITKConfig.cmake @ONLY)
#----------------------------------------------------------------------------

0 comments on commit 95724b8

Please sign in to comment.