• Ivan Shapovalov's avatar
    cmake: drop NO_DEFAULT_PATHS when searching libraries · 25b306ef
    Ivan Shapovalov authored
    It looks like pkg-config silently drops -I and -L flags pointing to
    default directories:
    
    ```
    $ cat /usr/lib/pkgconfig/capnp.pc
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${exec_prefix}/lib
    includedir=${prefix}/include
    
    Name: Cap'n Proto
    Description: Insanely fast serialization system
    Version: 0.7-dev
    Libs: -L${libdir} -lcapnp -pthread  -lpthread
    Libs.private:  -lpthread
    Requires: kj = 0.7-dev
    Cflags: -I${includedir} -pthread
    
    $ pkg-config --libs capnp
    -lcapnp -pthread -lpthread -lkj -pthread -lpthread
    ```
    
    Ideally, however, we should use FindPkgConfig.cmake's own facilities
    to generate IMPORTED targets from pkg-config files.
    25b306ef
Name
Last commit
Last update
c++ Loading commit data...
doc Loading commit data...
highlighting Loading commit data...
security-advisories Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
RELEASE-PROCESS.md Loading commit data...
appveyor-cygwin.sh Loading commit data...
appveyor.yml Loading commit data...
mega-test-kenton-home.cfg Loading commit data...
mega-test-kenton-work.cfg Loading commit data...
mega-test-quick.cfg Loading commit data...
mega-test.py Loading commit data...
release.sh Loading commit data...
style-guide.md Loading commit data...
super-test.sh Loading commit data...