Skip to content

Commit

Permalink
Merge pull request #233 from mikaelarguedas/modify_prefix_path_only_i…
Browse files Browse the repository at this point in the history
…f_thirdparty

add thirdparty directory to CMAKE_PREFIX_PATH only if THIRDPARTY optio…
  • Loading branch information
richiware authored Jun 25, 2018
2 parents 76c4b70 + 96657e3 commit ea57f15
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 ea57f15

Please sign in to comment.