Skip to content

Instantly share code, notes, and snippets.

@nico202
Last active August 28, 2016 22:14
Show Gist options
  • Save nico202/16954c30ddead506b4a377f22dbc8622 to your computer and use it in GitHub Desktop.
Save nico202/16954c30ddead506b4a377f22dbc8622 to your computer and use it in GitHub Desktop.
libyarpc patch
--- /src/CMakeLists.txt 2016-08-28 21:08:36.947222543 +0200
+++ /tmp/CMakeLists.txt 2016-08-28 21:10:19.461430271 +0200
@@ -69,7 +69,7 @@
if(YARP_COMPILE_UNMAINTAINED)
add_subdirectory(libyarpc)
add_subdirectory(libyarpcxx)
- if(YARP_COMPILE_EXECUTABLES)
- add_subdirectory(yarpfs)
- endif()
+# if(YARP_COMPILE_EXECUTABLES)
+# add_subdirectory(yarpfs)
+# endif()
endif()
diff --git a/src/libyarpc/CMakeLists.txt b/src/libyarpc/CMakeLists.txt
index b44d32f..b670ee9 100644
--- a/src/libyarpc/CMakeLists.txt
+++ b/src/libyarpc/CMakeLists.txt
@@ -17,7 +17,13 @@ if(CREATE_YARPC)
foreach(_comp OS sig dev init)
get_property(${_comp}_src TARGET YARP_${_comp} PROPERTY SOURCES)
foreach(_file ${${_comp}_src})
- list(APPEND YARP_COPY_SRC ${CMAKE_SOURCE_DIR}/src/libYARP_${_comp}/${_file})
+ if(${_comp} STREQUAL dev)
+ if(${_file} STREQUAL include/yarp/dev/jointData.h)
+ list(APPEND YARP_COPY_SRC ${CMAKE_SOURCE_DIR}src/libYARP_${_comp}/${_file})
+ endif()
+ else()
+ list(APPEND YARP_COPY_SRC ${CMAKE_SOURCE_DIR}/src/libYARP_${_comp}/${_file})
+ endif()
set_property(SOURCE ${CMAKE_SOURCE_DIR}/src/libYARP_${_comp}/${_file} APPEND_STRING PROPERTY COMPILE_FLAGS " -fvisibility=hidden")
endforeach()
get_property(YARP_${_comp}_INCLUDE_DIRS TARGET YARP_${_comp} PROPERTY INCLUDE_DIRECTORIES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment