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:
STRING sub-command REGEX, mode REPLACE failed to compile regex "/usr".
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

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  [EMAIL PROTECTED]
Boulder, CO 80301              http://www.cora.nwra.com

-------------------------------------------------------------------------
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