Menu

#66 pkg-config file is broken when CMAKE_INSTALL_{INCLUDE,LIB}DIR is absolute

None
open
nobody
None
5
2022-05-18
2022-05-09
No

As per title: CMakeLists.txt has

set ( prefix      "${CMAKE_INSTALL_PREFIX}" )
set ( exec_prefix "\${prefix}" )
set ( libdir      "\${prefix}/${CMAKE_INSTALL_LIBDIR}" )
set ( includedir  "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}" )

and so can’t handle absolute paths in CMAKE_INSTALL_{INCLUDE,LIB}DIR. This leads to a broken .pc file on NixOS in particular.

Similar to https://github.com/open-source-parsers/jsoncpp/pull/1199. See “Concatenating paths when building pkg-config files” for a discussion of the problem and a suggested fix in a somewhat different context (I don’t know CMake myself, sorry).

Discussion

  • Christian W. Zuckschwerdt

    Thanks. I'm not aware of anyone actively maintaining OpenOBEX currently.

     
  • Alex Shpilkin

    Alex Shpilkin - 2022-05-18

    I see, thanks. Not much I can do about that, unfortunately.

    (FWIW, all of this applies to ObexFTP as well.)

     

Log in to post a comment.

MongoDB Logo MongoDB