[Cmake] Possible patches for ITK_WRAP_TCL

Anton Deguet anton at cs.jhu.edu
Mon Apr 21 15:09:17 EDT 2003


Hello,

Here are two possible corrections for CMake related to the ITK_WRAP_TCL 
command.  The first one is for the FindCABLE module:

Index: Modules/FindCABLE.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindCABLE.cmake,v
retrieving revision 1.8
diff -r1.8 FindCABLE.cmake
63c63,64
<             ${CABLE_ROOT_BIN}/../share/Cable/include)
---
 >             ${CABLE_ROOT_BIN}/../share/Cable/include
 >             ${CABLE_ROOT_BIN}/../include/Cable)
68c69,71
<                ${CABLE_ROOT_BIN}/../lib)
---
 >                ${CABLE_ROOT_BIN}/../lib
 >                ${CABLE_ROOT_BIN}/../lib/Cable)
 >


The second one is so that not only the include directories but also the 
compiler defines are passed to Cable/gcc_xml (e.g. 
-DWRAP_THIS_FUNCTION).  This is a quick patch which works. 
Nevertheless, now the Unix Makefile has some "\ " and I haven't tested 
or even modified the code for Windows Visual C and NMake.

Index: Source/cmITKWrapTclCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmITKWrapTclCommand.cxx,v
retrieving revision 1.12
diff -r1.12 cmITKWrapTclCommand.cxx
122a123
 >     commandArgs.push_back(m_Makefile->GetDefineFlags());

Sincerely,

Anton

-- 
Anton Deguet - Email anton<at>cs.jhu.edu
Office NEB B26 - Phone 410 516 5261 - Fax 410 516 3332
http://cisstweb.cs.jhu.edu




More information about the CMake mailing list