[Paraview] paraview III (patch to CMakeList.txt)

Olivier Ricou olivier at ricou.eu.org
Mon Feb 5 10:57:16 EST 2007


Hi,

 I don't know CMake but I think there is a small bug is the 
CMakeList.txt of Paraview (cvs' version). If I try to run 
ccmake in the source directory I have an error message which 
ask my to try again in another directory. If I do so I still
receive the same message because a CMakeCache.txt file still
exists in the source directory. I expected to solve the 
poblem this way, but no :

--- CMakeLists.txt      2007-01-01 18:24:49.000000000 +0100
+++ CMakeLists.txt2     2007-02-05 16:30:14.000000000 +0100
@@ -23,6 +23,7 @@
   "${ParaView_BINARY_DIR}" INSOURCE)
 IF(INSOURCE)
+  FILE(REMOVE "${ParaView_SOURCE_DIR}/CMakeCache.txt")
   MESSAGE(FATAL_ERROR "ParaView requires an out of source Build. Please create a separate binary directory and run CMake there.")
 ENDIF(INSOURCE)

 #########################################################################

So if someone can correct my "patch" and commit it.

Regards,

Olivier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://public.kitware.com/pipermail/paraview/attachments/20070205/33980c37/attachment.pgp


More information about the ParaView mailing list