Closed pavel-odintsov closed 1 year ago
Following fix worked just fine:
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d0fc204..18407dd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -255,7 +255,7 @@ endif()
ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_SOURCE_DIR}/simple_packet_capnp/simple_packet.capnp.c++
DEPENDS ${PROJECT_SOURCE_DIR}/simple_packet_capnp/simple_packet.capnp
- COMMAND "LD_LIBRARY_PATH=$ENV{LD_LIBRARY_PATH}" "PATH=$ENV{PATH}:${CAPNP_CUSTOM_INSTALL_PATH}/bin" ${CAPNP_BINARY} compile --output c++:${PROJECT_SOURCE_DIR}/simple_packet_capnp --src-prefix=${PROJECT_SOURCE_DIR}/simple_packet_capnp ${PROJECT_SOURCE_DIR}/simple_packet_capnp/simple_packet.capnp
+ COMMAND ${CAPNP_BINARY} compile --output c++:${PROJECT_SOURCE_DIR}/simple_packet_capnp --src-prefix=${PROJECT_SOURCE_DIR}/simple_packet_capnp ${PROJECT_SOURCE_DIR}/simple_packet_capnp/simple_packet.capnp
COMMENT "Build Cap'n'Proto binding for C++"
)
Well, Linux did not like it:
[ 17%] Linking CXX static library libpatricia.a
c++: no such plugin (executable should be 'capnpc-c++')
c++: plugin failed: exit code 1
make[2]: *** [CMakeFiles/simple_packet_capnp.dir/build.make:74: ../simple_packet_capnp/simple_packet.capnp.c++] Error 1
make[1]: *** [CMakeFiles/Makefile2:208: CMakeFiles/simple_packet_capnp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 17%] Built target patricia
Failed again. Life is sad.
Whoa it worked.
Error: