Skip to content

Commit

Permalink
Merge pull request #110 from ros2/cleanup_cmake_module
Browse files Browse the repository at this point in the history
remove obsolete stuff from CMake module
  • Loading branch information
dirk-thomas authored May 18, 2017
2 parents 8559a7b + d8f154d commit d455448
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions fastrtps_cmake_module/cmake/Modules/FindFastRTPS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,10 @@
#
# CMake module for finding eProsima FastRTPS.
#
# Input variables:
#
# - FASTRTPSHOME (optional): When specified, header files and libraries
# will be searched for in `${FASTRTPSHOME}/include`
# and `${FASTRTPSHOME}/lib` respectively.
#
# Output variables:
#
# - FastRTPS_FOUND: flag indicating if the package was found
# - FastRTPS_INCLUDE_DIR: Paths to the header files
# - FastRTPS_HOME: Root directory for the eProsima FastRTPS install. Might be
# not set.
# - FastRTPS_LIBRARIES: Name to the C++ libraries including the path
# - FastRTPS_LIBRARY_DIRS: Paths to the libraries
# - FastRTPS_LIBRARY_DIR: Path to libraries; guaranteed to be a single path
# - FastRTPS_DEFINITIONS: Definitions to be passed on
#
# Example usage:
#
Expand All @@ -45,24 +33,8 @@

set(FastRTPS_FOUND FALSE)

# -----------------------------------------
# Detect environment variable
# -----------------------------------------
if($ENV{FASTRPCHOME})
set(FastRTPS_HOME $ENV{FASTRPCHOME})
endif()

# -----------------------------------------
# Search for eProsima FastRTPS include DIR
# -----------------------------------------
set(_fastrtps_INCLUDE_SEARCH_DIRS "")

if(FastRTPS_HOME)
list(APPEND _fastrtps_INCLUDE_SEARCH_DIRS ${FastRTPS_HOME}/include)
endif()

find_path(FastRTPS_INCLUDE_DIR
NAMES fastrtps/)
NAMES fastrtps/)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FastRTPS
Expand Down

0 comments on commit d455448

Please sign in to comment.