Skip to content

Commit

Permalink
issue cmake messages regarding openeb
Browse files Browse the repository at this point in the history
  • Loading branch information
berndpfrommer committed Mar 25, 2024
1 parent 0659ff4 commit 54fe11c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ find_package(MetavisionSDK COMPONENTS driver QUIET)
set(MUST_INSTALL_METAVISION FALSE)

if(NOT MetavisionSDK_FOUND)
message(STATUS "metavision SDK is not installed, must build it")
# must set various variables for OpenEB *before* fetching openEB.
# CMAKE_ARGS seems to not work for FetchContent_Declare()
# set(COMPILE_3DVIEW OFF CACHE INTERNAL "Build 3d viewer")
Expand All @@ -39,13 +40,15 @@ if(NOT MetavisionSDK_FOUND)
GIT_TAG 4.2.0-ros)

FetchContent_MakeAvailable(metavision)

message(STATUS "metavision SDK fetched and made available")
# do this to avoid the "install" target being run on the metavision sdk
if(IS_DIRECTORY "${metavision_SOURCE_DIR}")
set_property(DIRECTORY ${metavision_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL YES)
endif()

set(MUST_INSTALL_METAVISION TRUE)
else()
message(STATUS "metavision SDK is installed, not building it")
endif()

#
Expand Down

0 comments on commit 54fe11c

Please sign in to comment.