Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2122

CMake: wrong substitutions in pkg-config file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.1
    • Build
    • None
    • Debian GNU/Linux unstable

    Description

      Here's a diff between the xerces-c.pc files created by CMake and Autotools:

      --- ../xerces-c.pc.cmake	2017-10-06 11:33:55.580393801 +0000
      +++ xerces-c.pc	2017-10-06 11:34:28.129103784 +0000
      @@ -1,11 +1,11 @@
       prefix=/usr/local
      -exec_prefix=/usr/local
      -libdir=/usr/local/lib
      -includedir=/usr/local/include
      +exec_prefix=${prefix}
      +libdir=${exec_prefix}/lib
      +includedir=${prefix}/include
       
       Name: Xerces-C++
       Description: Validating XML parser library for C++
      -Version: 
      -Libs: -L/usr/local/lib -lxerces-c
      -Libs.private: 
      -Cflags: -I/usr/local/include
      +Version: 3.2.0
      +Libs: -L${libdir} -lxerces-c
      +Libs.private: -lcurl
      +Cflags: -I${includedir}
      

      In my opinion the CMake version has the following problems:

      • variables are expanded (prefix and includedir),
      • the version string is missing,
      • static linking options (-lcurl) are missing (after Libs.private).

      Attachments

        Activity

          People

            rleigh Roger Leigh
            wferi Ferenc Wágner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: