Skip to content

Commit

Permalink
add thirdparty directory to CMAKE_REFIX_PATH only if THIRDPARTY optio…
Browse files Browse the repository at this point in the history
…n is specified
  • Loading branch information
mikaelarguedas committed Jun 22, 2018
1 parent 76c4b70 commit 96657e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/common/eprosima_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ macro(eprosima_find_thirdparty package thirdparty_name)
else()
message(FATAL_ERROR "Cannot configure Git submodule ${package}")
endif()
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_SOURCE_DIR}/thirdparty/${thirdparty_name})
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_SOURCE_DIR}/thirdparty/${thirdparty_name}/${thirdparty_name})
endif()

set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_SOURCE_DIR}/thirdparty/${thirdparty_name})
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_SOURCE_DIR}/thirdparty/${thirdparty_name}/${thirdparty_name})
find_package(${package} REQUIRED QUIET)

endif()
Expand Down

0 comments on commit 96657e3

Please sign in to comment.