Skip to content

Commit ed814c2

Browse files
committed
Fixing capnp enabled in UDA CLI
1 parent ef6dcc6 commit ed814c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/bin/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ target_link_libraries( uda_cli PRIVATE Boost::program_options )
1616
if( ENABLE_CAPNP )
1717
find_package( CapnProto REQUIRED )
1818

19-
target_link_libraries( uda_cli PRIVATE serialisation-static )
19+
target_link_libraries( uda_cli PRIVATE serialisation-static )
20+
target_compile_definitions( uda_cli PRIVATE CAPNP_ENABLED=1 )
2021

2122
find_library( STDCXX_LIBRARY_FILE stdc++ HINTS ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES} )
2223
get_filename_component(STDCXX_LIBRARY_DIR ${STDCXX_LIBRARY_FILE} DIRECTORY )
2324

2425
if ( "${STDCXX_LIBRARY_DIR}" STREQUAL "" )
2526
set ( STDCXX_RPATH "" )
2627
else()
27-
set ( STDCXX_RPATH "-Wl,-rpath,${STDCXX_LIBRARY_DIR} -L${STDCXX_LIBRARY_DIR} -lstdc++" )
28-
28+
set ( STDCXX_RPATH "-Wl,-rpath,${STDCXX_LIBRARY_DIR} -L${STDCXX_LIBRARY_DIR} -lstdc++" )
2929
endif()
3030

3131
if ( "${capnp_LIBRARY_DIRS}" STREQUAL "" )

0 commit comments

Comments
 (0)