[QGIS-trac] Re: [Quantum GIS] #2785: [Cmake] FindGRASS.cmake issue

Quantum GIS qgis at qgis.org
Sun Jun 6 07:41:30 EDT 2010


#2785: [Cmake] FindGRASS.cmake issue
-----------------------------------------------------+----------------------
        Reporter:  vesnikos                          |         Owner:  nobody       
            Type:  bug                               |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Build/Install                     |       Version:  HEAD         
      Resolution:                                    |      Keywords:               
Platform_version:                                    |      Platform:  Debian       
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Changes (by vesnikos):

  * summary:  GRASS 6.4.0 RC6 is not supported for building grass_plugin =>
              [Cmake] FindGRASS.cmake issue

Comment:

 more additional info:



 from http://www.mail-archive.com/cmake@cmake.org/msg07252.html
 {{{
 # ^ and $ appear to be non-functional in practice. This makes it
 # impossible to code a non-trivial regex in CMake script.  This in turn
 # forces the user to find or install other tools that can do so, rather
 # than keeping their scripting logic self-contained in CMake.
 #
 # ^ and $ work work with respect to an entire <input> to STRING().
 # That is to say, an <input> is treated as one line.  The <input>
 # does not preserve newlines, even if it is read from a multi-line file.
 # The following code snippet demonstrates that ^ and $ will only
 # match at the beginning and end of a file, when the file is read in as
 # an <input> string.
 }}}

 one that was suggested was

 {{{
  STRING(REGEX REPLACE "\r?\n" ";" ENT "${input}")
  FOREACH(line ${ENT})
  # do the match on each line

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2785#comment:7>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list