jpouderoux / libcitygml

C++ CityGML parser for 3D applications
https://code.google.com/p/libcitygml/
GNU Lesser General Public License v2.1
2 stars 0 forks source link

CMake generates wrong linker target for debug mode (Visual Studio 2010 using XERCES 3.1.1) #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate libcitygml with CMAKE for Visual Studio
2. Open Solution and choose Debug Mode
3. Open Properties Page of project "citygmltest"
4. Navigate to "Configuration Properties" > "Linker" > "Command Line"

What is the expected output? What do you see instead?
Expected: ...lib\xerces-c_static_3D.lib...
Instead: ...lib\xerces-c_static_3.lib...

What version of the product are you using? On what operating system?
libcitygml v.0.1.4 & citygml2vrml v.0.1.3 &  XERCES 3.1.1
Visual Studio 2010
Windows 7 x64

Please provide any additional information below.
Issue is solved when chaging Lines 67 - 73 in FindXerces.cmake to:
IF(XERCESC_LIBRARY_DEBUG)
  SET(XERCESC_LIBRARY
    optimized ${XERCESC_LIBRARY}
    debug ${XERCESC_LIBRARY_DEBUG})
ENDIF(XERCESC_LIBRARY_DEBUG)

Original issue reported on code.google.com by Claus...@gmail.com on 8 Oct 2012 at 10:27

GoogleCodeExporter commented 9 years ago
CMake Error at CMakeModules/FindXerces.cmake:74 (MESSAGE):
  Could not find Xerces-C !
when i using camke to configure libcitygml

how can i fix it?
i use libcitygml0.1.3  & citygml2vrml v.0.1.3 &  XERCES 3.1.1
Visual Studio 2010
Windows 7 x64

Original comment by 274006...@qq.com on 29 Nov 2014 at 8:54