<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 5:43 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Darren Weber wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Here is the diff from that bug report:<br>
<br>
##############BEGIN DIFF<br>
diff -u -r cableswig-0.1.0+cvs20080107.orig/SWIG/CMakeLists.txt cableswig-0.1.0+cvs20080107.new/SWIG/CMakeLists.txt<br>
--- cableswig-0.1.0+cvs20080107.orig/SWIG/CMakeLists.txt 2007-01-10 10:31:37.000000000 -0600<br>
+++ cableswig-0.1.0+cvs20080107.new/SWIG/CMakeLists.txt 2008-01-07 22:54:23.000000000 -0600<br>
@@ -25,6 +25,10 @@<br>
SET(SWIG_CXX "\"${CMAKE_CXX_COMPILER}\"")<br>
SET(SWIG_PLATFORM "\"${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}\"")<br>
+# Install support library.<br>
+SET(SWIG_LIB_INSTALL<br>
+ ${CMAKE_INSTALL_PREFIX}/${CableSwig_INSTALL_ROOT}lib/CableSwig/SWIGLib)<br>
+<br>
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFiles.cmake)<br>
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)<br>
@@ -158,7 +162,4 @@<br></div>
CONFIGURE_FILE(${SWIG_SOURCE_DIR}/<a href="http://SWIGConfig.cmake.in" target="_blank">SWIGConfig.cmake.in</a> <<a href="http://SWIGConfig.cmake.in" target="_blank">http://SWIGConfig.cmake.in</a>><div class="im"><br>
${SWIG_BINARY_DIR}/SWIGConfig.cmake @ONLY IMMEDIATE)<br>
-# Install support library.<br>
-SET(SWIG_LIB_INSTALL<br>
- ${CMAKE_INSTALL_PREFIX}/${CableSwig_INSTALL_ROOT}lib/CableSwig/SWIGLib)<br>
SUBDIRS(Lib)<br>
Only in cableswig-0.1.0+cvs20080107.new/SWIG: CMakeLists.txt~<br>
##############END DIFF<br>
</div></blockquote>
<br>
The fix is correct except that the comment should not move. The<br>
bug was due to a change in the behavior of configure_file since<br>
CMake 1.8. It used to configure at the end of the CMakeLists.txt<br>
file (after the variable has been set), but now the IMMEDIATE<br>
mode is always used. I've committed upstream:<br>
<br>
BUG: Fix installed cswig reference to SWIGLib<br>
/cvsroot/Insight/CableSwig/SWIG/CMakeLists.txt,v <-- CMakeLists.txt<br>
new revision: 1.11; previous revision: 1.10<br>
<br>
</blockquote></div><br><br>Yes, that works. Thanks for the cvs fix, Brad!<br><br>Take care,<br>Darren<br><br>