[Fdo-trac] [fdo-trac] #944: CMake: Prepare providers.xml for UnitTest executables

FDO trac_fdo at osgeo.org
Sun Feb 11 02:44:21 PST 2018


#944: CMake: Prepare providers.xml for UnitTest executables
----------------------------+----------------------
   Reporter:  jng           |      Owner:  jng
       Type:  enhancement   |     Status:  assigned
   Priority:  major         |  Milestone:
  Component:  Build System  |    Version:
   Severity:  3             |   Keywords:
External ID:                |
----------------------------+----------------------
 Currently, UnitTest executables produced by CMake cannot be run without
 first doing:

 {{{
 sudo make install
 export LD_LIBRARY_PATH=/usr/local/fdo-x.y.z/lib:$LD_LIBRARY_PATH
 }}}

 This is because there is no `providers.xml` present in the UnitTest's
 output directory (because the default one is for Windows), so the next
 place to look is the FDO installatio ndirectory, which can easily get out
 of date with respect to what you're currently building.

 The UnitTest's `CMakeLists.txt` should prepare an app-local copy of this
 file

--
Ticket URL: <https://trac.osgeo.org/fdo/ticket/944>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list