Last active
August 28, 2016 22:14
-
-
Save nico202/16954c30ddead506b4a377f22dbc8622 to your computer and use it in GitHub Desktop.
libyarpc patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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