1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Workaround generating invalid CapnProtoConfig which is not
multiarch cmake aware, and thus yields invalid bin and include paths.
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Bug-Debian: https://bugs.debian.org/920230
--- a/cmake/CapnProtoConfig.cmake.in
+++ b/cmake/CapnProtoConfig.cmake.in
@@ -38,11 +38,11 @@
set(CapnProto_VERSION @VERSION@)
-set(CAPNP_EXECUTABLE $<TARGET_FILE:CapnProto::capnp_tool>
+set(CAPNP_EXECUTABLE /usr/bin/capnp
CACHE FILEPATH "Location of capnp executable")
-set(CAPNPC_CXX_EXECUTABLE $<TARGET_FILE:CapnProto::capnpc_cpp>
+set(CAPNPC_CXX_EXECUTABLE /usr/bin/capnpc-c++
CACHE FILEPATH "Location of capnpc-c++ executable")
-set(CAPNP_INCLUDE_DIRECTORY "@PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR@")
+set(CAPNP_INCLUDE_DIRECTORY /usr/include)
# work around http://public.kitware.com/Bug/view.php?id=15258
if(NOT _IMPORT_PREFIX)
|