[Insight-users] build of cableswig - how to specify the SWIG Lib directory?
Darren Weber
darren.weber.lists at gmail.com
Wed May 20 15:18:19 EDT 2009
On Wed, May 20, 2009 at 5:43 AM, Brad King <brad.king at kitware.com> wrote:
> Darren Weber wrote:
>
>> Here is the diff from that bug report:
>>
>> ##############BEGIN DIFF
>> diff -u -r cableswig-0.1.0+cvs20080107.orig/SWIG/CMakeLists.txt
>> cableswig-0.1.0+cvs20080107.new/SWIG/CMakeLists.txt
>> --- cableswig-0.1.0+cvs20080107.orig/SWIG/CMakeLists.txt 2007-01-10
>> 10:31:37.000000000 -0600
>> +++ cableswig-0.1.0+cvs20080107.new/SWIG/CMakeLists.txt 2008-01-07
>> 22:54:23.000000000 -0600
>> @@ -25,6 +25,10 @@
>> SET(SWIG_CXX "\"${CMAKE_CXX_COMPILER}\"")
>> SET(SWIG_PLATFORM "\"${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}\"")
>> +# Install support library.
>> +SET(SWIG_LIB_INSTALL
>> + ${CMAKE_INSTALL_PREFIX}/${CableSwig_INSTALL_ROOT}lib/CableSwig/SWIGLib)
>> +
>> INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFiles.cmake)
>> INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
>> @@ -158,7 +162,4 @@
>> CONFIGURE_FILE(${SWIG_SOURCE_DIR}/SWIGConfig.cmake.in <
>> http://SWIGConfig.cmake.in>
>> ${SWIG_BINARY_DIR}/SWIGConfig.cmake @ONLY IMMEDIATE)
>> -# Install support library.
>> -SET(SWIG_LIB_INSTALL
>> - ${CMAKE_INSTALL_PREFIX}/${CableSwig_INSTALL_ROOT}lib/CableSwig/SWIGLib)
>> SUBDIRS(Lib)
>> Only in cableswig-0.1.0+cvs20080107.new/SWIG: CMakeLists.txt~
>> ##############END DIFF
>>
>
> The fix is correct except that the comment should not move. The
> bug was due to a change in the behavior of configure_file since
> CMake 1.8. It used to configure at the end of the CMakeLists.txt
> file (after the variable has been set), but now the IMMEDIATE
> mode is always used. I've committed upstream:
>
> BUG: Fix installed cswig reference to SWIGLib
> /cvsroot/Insight/CableSwig/SWIG/CMakeLists.txt,v <-- CMakeLists.txt
> new revision: 1.11; previous revision: 1.10
>
>
Yes, that works. Thanks for the cvs fix, Brad!
Take care,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090520/d8b529a1/attachment-0001.htm>
More information about the Insight-users
mailing list