[QGIS-trac] Re: [Quantum GIS] #3376: CMake cannot find GDAL or GEOS

Quantum GIS qgis at qgis.org
Thu Dec 30 18:17:50 EST 2010


#3376: CMake cannot find GDAL or GEOS
------------------------------------------------+---------------------------
   Reporter:  sharpie                           |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Build/Install                     |            Version:  1.6.0        
   Keywords:  cmake osx                         |   Platform_version:               
   Platform:  OS X                              |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------

Comment(by sharpie):

 Adding FORCE to SET worked.

 Additionally, I noticed that many of the SET commands are of the form:

 {{{
 SET( <variable> <value> CACHE STRING INTERNAL)
 }}}

 This looks like an attempt to set the <type> of the variable to both
 STRING and INTERNAL.  According to cmake --help-command SET:

 {{{
 The value for <type> may be one of

          FILEPATH = File chooser dialog.
          PATH     = Directory chooser dialog.
          STRING   = Arbitrary string.
          BOOL     = Boolean ON/OFF checkbox.
          INTERNAL = No GUI entry (used for persistent variables).
 }}}

 I don't know if specifying two types is causing any problems, but it is
 probably not working as intended.  For the two APPLE SET commands, I
 replaced STRING INTERNAL with FILEPATH "A Description" FORCE.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3376#comment:2>
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