yangqiaosheng / libcitygml

Automatically exported from code.google.com/p/libcitygml
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Small issue in finder cmake #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

i found an issue in the FindCityGML.cmake file.

If there is no debug version of the library available, the variable 
CITYGML_LIBRARIES does not get set.

Fix at the bottom of the file:

IF(CITYGML_LIBRARY AND CITYGML_INCLUDE_DIR)
    SET(CITYGML_FOUND TRUE)
    IF(NOT CITYGML_LIBRARY_DEBUG)
        MESSAGE("-- Warning Debug LibCityGML not found, using: ${CITYGML_LIBRARY}")
        SET(CITYGML_LIBRARY_DEBUG "${CITYGML_LIBRARY}" CACHE FILEPATH "Path to a library." FORCE)
    ENDIF(NOT CITYGML_LIBRARY_DEBUG)
ENDIF(CITYGML_LIBRARY AND CITYGML_INCLUDE_DIR)

SET(CITYGML_LIBRARIES optimized ${CITYGML_LIBRARY} debug 
${CITYGML_LIBRARY_DEBUG})

Kind regards,
Jan

Original issue reported on code.google.com by jan.kli...@gmail.com on 3 Aug 2011 at 2:16

GoogleCodeExporter commented 9 years ago
Thanks again!
Just fixed in Revision 121.
Regards,
Joachim

Original comment by jpouder...@gmail.com on 3 Aug 2011 at 2:31