Skip to content

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

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions