majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

wrong yaml-cpp.pc #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
According to existent version of yaml-cpp.pc.cmake we are getting this rows
in yaml-cpp.pc:

prefix=/usr/local
exec_prefix=/usr/local
libdir=lib
includedir=include/yaml-cpp

And this is wrong, because `pkg-config yaml-cpp --cflags` will return
"-Iinclude/yaml-cpp"... it's not what expected to be.

By adding prefix variable you can solve this issue.

yaml-cpp.pc.cmake:
libdir=${prefix}/@LIB_INSTALL_DIR@
includedir=${prefix}/@INCLUDE_INSTALL_DIR@

Now `pkg-config yaml-cpp --cflags` will work as expected, returning
"-I/usr/local/include/yaml-cpp".

/Vasily

Original issue reported on code.google.com by Vasily.S...@gmail.com on 25 Jul 2009 at 3:05

GoogleCodeExporter commented 9 years ago
OK, I committed those changes. Thanks!

Original comment by jbe...@gmail.com on 25 Jul 2009 at 6:04