Skip to content

Commit

Permalink
[bindings] Disable compilation of bindings using external yarp
Browse files Browse the repository at this point in the history
As discussed in #318
  • Loading branch information
traversaro authored and drdanz committed Jan 4, 2016
1 parent 63eb5b8 commit 23d1eaf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,8 @@ if("${SWIG_VERSION}" VERSION_LESS "${MIN_SWIG_VERSION}")
message(FATAL_ERROR "Please update your SWIG. Current version: ${SWIG_VERSION}. The minimum version needed: ${MIN_SWIG_VERSION}")
endif()

if(NOT YARP_VERSION)
find_package(YARP REQUIRED)
else()
set(YARP_FOUND TRUE)
get_property(YARP_INCLUDE_DIRS GLOBAL PROPERTY YARP_TREE_INCLUDE_DIRS)
get_property(YARP_LIBRARIES GLOBAL PROPERTY YARP_LIBS)
get_property(YARP_DEFINES GLOBAL PROPERTY YARP_DEFS)
endif()
get_property(YARP_INCLUDE_DIRS GLOBAL PROPERTY YARP_TREE_INCLUDE_DIRS)
get_property(YARP_LIBRARIES GLOBAL PROPERTY YARP_LIBS)
include_directories(${YARP_INCLUDE_DIRS})
link_libraries(${YARP_LIBRARIES})

Expand Down

0 comments on commit 23d1eaf

Please sign in to comment.