Skip to content

Commit

Permalink
Update ICUBConfig.cmake.in
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene authored and pattacini committed Jul 17, 2020
1 parent 9f2f5a8 commit e9c0593
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conf/ICUBConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(ICUB_VERSION @PACKAGE_VERSION@)

# Backup the YARP_LIBRARIES content
if(DEFINED YARP_LIBRARIES)
set(_temp_yarp_libs ${YARP_LIBRARIES})
endif()
Expand Down Expand Up @@ -42,7 +43,7 @@ set(ICUB_CONTEXTS_INSTALL_DIR "@ICUB_CONTEXTS_INSTALL_DIR@")
# Add the folder with the CMake files to the CMAKE_MODULE_PATH of the imported target scope
list(APPEND CMAKE_MODULE_PATH ${ICUB_MODULE_PATH})

# Restore the original value of YARP_LIBRARIES before the find_dependency calls
if(DEFINED _temp_yarp_libs)
list(APPEND YARP_LIBRARIES ${_temp_yarp_libs})
list(REMOVE_DUPLICATES YARP_LIBRARIES)
set(YARP_LIBRARIES ${_temp_yarp_libs})
endif()

0 comments on commit e9c0593

Please sign in to comment.