Skip to content

Commit

Permalink
[zdepth] [ros-o] only use STREQUAL to compare ROS_DISTRO in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 26, 2024
1 parent 63b2c78 commit 3f42be3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 3rdparty/zdepth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ project(zdepth)

include(ExternalProject)

if(NOT "$ENV{ROS_DISTRO}" STREQUAL "indigo" OR NOT "$ENV{ROS_DISTRO}" STREQUAL "kinetic")
if(("$ENV{ROS_DISTRO}" STREQUAL "indigo") OR ("$ENV{ROS_DISTRO}" STREQUAL "kinetic"))
install(CODE "message(WARNING \"Skipping zdepth install because ROS is too old\")")
else()
ExternalProject_Add(
zdepth
GIT_REPOSITORY https://github.com/catid/Zdepth.git
Expand All @@ -15,6 +17,4 @@ if(NOT "$ENV{ROS_DISTRO}" STREQUAL "indigo" OR NOT "$ENV{ROS_DISTRO}" STREQUAL "
)

install(CODE "execute_process(COMMAND make install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/zdepth-prefix/src/zdepth-build)")
else()
install(CODE "message(WARNING \"Skipping zdepth install because ROS is too old\")")
endif()

0 comments on commit 3f42be3

Please sign in to comment.