You need to sign in or sign up before continuing.
  1. 05 Aug, 2018 2 commits
    • Kenton Varda's avatar
      cmake: cxx_std_14 -> cxx_generic_lambdas · d7a3e49c
      Kenton Varda authored
      Apparently, this is compatible with older versions of cmake, while having the same effect. Apparently, the cmake people spent some time refuling to let people specify C++ standard versions and instead insisted that they specify specific features instead. They did not see the light until cmake 3.8, but that's too new for us to require yet, I guess.
      d7a3e49c
    • Kenton Varda's avatar
      We now require C++14. · 66730ef6
      Kenton Varda authored
      I'm tired of working around missing features that were added in C++14. It's four years old now, compilers should support it.
      66730ef6
  2. 13 Jul, 2018 1 commit
    • Harris Hancock's avatar
      cmake: Use search-specific-dirs-then-system-dirs idiom · df0fbbe3
      Harris Hancock authored
      An inconsistency was introduced with the previous fix to allow Cap'n Proto
      installations in system directories to be found by CapnProtoTargets.cmake:
      if the user installed Cap'n Proto in two locations, one of which is a
      system directory, e.g. /usr and /somewhere/else, and set
      PKG_CONFIG_PATH=/somewhere/else/lib/pkgconfig, the dependent project
      would use headers from /somewhere/else/include, but libraries from /usr/lib.
      
      This change resolves the inconsistency, allowing PKG_CONFIG_PATH to solely
      control the location of the desired installation of Cap'n Proto.
      df0fbbe3
  3. 22 May, 2018 1 commit
    • 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
  4. 07 Nov, 2017 2 commits