On 2007-01-11 12:21-0700 Orion Poplawski wrote:

> Getting the following cmake error:
>
> -- PLPLOT_OCTAVE_DIR = /usr/share/plplot_octave
> CMake Error: Error in cmake code at
> /usr/src/redhat/BUILD/plplot-5.7.1/cmake/modules/octave.cmake:230:
> Current CMake stack:
> /usr/src/redhat/BUILD/plplot-5.7.1/CMakeLists.txt;/usr/share/cmake/Modules/CMakeCInformation.cmake;/usr/share/cmake/Modules/CMakeCXXInformation.cmake;/usr/src/redhat/BUILD/plplot-5.7.1/cmake/modules/plplot.cmake;/usr/src/redhat/BUILD/plplot-5.7.1/cmake/modules/fortran.cmake;/usr/src/redhat/BUILD/plplot-5.7.1/cmake/modules/octave.cmake
> RegularExpression::compile(): Unmatched [].
> RegularExpression::compile(): Error in compile.
> -- OCTAVE_M_DIR =
> -- OCTAVE_OCT_DIR = /usr/share/plplot_octave
>
>
> I think this is the proper fix:
>
>
> diff -u -r1.11 octave.cmake
> --- plplot/cmake/modules/octave.cmake   6 Nov 2006 23:28:32 -0000       1.11
> +++ plplot/cmake/modules/octave.cmake   11 Jan 2007 18:58:37 -0000
> @@ -227,7 +227,7 @@
>     "${NUMERICAL_OCTAVE_TESTING_MINIMUM_VERSION}"
>     )
>    # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
> -  string(REGEX REPLACE
> +  string(REPLACE
>    "${OCTAVE_PREFIX}"
>    "${CMAKE_INSTALL_PREFIX}"
>    OCTAVE_M_DIR

Hi Orion:

I agree REGEX REPLACE is overkill in this case so I have made the above
change, tested it, and committed it.

However, although REGEX REPLACE is overkill, I do not understand why the
REGEX REPLACE failed in your case with a

STRING sub-command REGEX, mode REPLACE failed to compile regex "/usr".

error message.  It's always worked fine for me on both my Debian stable and
Ubuntu dapper platforms and nobody else has reported problems with it.  An
ordinary string like "/usr" should work fine as a regex so I suspect some
deeper trouble exists on your system (perhaps with the compilation of cmake
itself using the cutting-edge/unstable compiler on your system?)

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to