[Insight-users] ITKConfig.cmake has wrong include path for gdcm in itk 3.2.0 on windows

Steve M. Robbins steve at sumost.ca
Wed Jun 13 11:03:15 EDT 2007


On Wed, Jun 13, 2007 at 12:28:49PM +0300, Yair Yarom wrote:

> But when trying to compile IGSTK using the installed itk, it complains that it
> can't find gdcmSerieHelper.h. I traced the problem to
> lib/InsightToolkit/ITKConfig.cmake where ITK_INCLUDE_DIRS has the directories:
>   W:/src/itk/InsightToolkit-3.2.0-build/Utilities/gdcm
>   W:/src/itk/InsightToolkit-3.2.0/Utilities/gdcm/src
> Which are for the build and the source of itk, and not the installation.

What a coincidence!

I just reported that bug last night with a patch (below).
See http://www.itk.org/Bug/bug.php?op=show&bugid=5174

Cheers,
-Steve

--- itkIncludeDirectories.cmake	2006-11-30 17:12:59.000000000 -0600
+++ ../../insighttoolkit-3.2.0/itkIncludeDirectories.cmake	2007-06-13 00:27:16.000000000 -0500
@@ -135,8 +135,8 @@
 
 IF(NOT ITK_USE_SYSTEM_GDCM)
   SET(ITK_INCLUDE_DIRS_INSTALL_TREE ${ITK_INCLUDE_DIRS_INSTALL_TREE}
-    ${ITK_BINARY_DIR}/Utilities/gdcm
-    ${ITK_SOURCE_DIR}/Utilities/gdcm/src
+    ${ITK_INSTALL_INCLUDE_PATH}/gdcm
+    ${ITK_INSTALL_INCLUDE_PATH}/gdcm/src
     )
 ENDIF(NOT ITK_USE_SYSTEM_GDCM)
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070613/4acac823/attachment.pgp


More information about the Insight-users mailing list