Skip to content

Commit

Permalink
Mac OS: Fix compilation on Big Sur / Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Dec 28, 2020
1 parent 4043287 commit ca6c738
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ find_package(TinyXML REQUIRED)
if (BUILD_GSTREAMER_PLUGIN)
set(GStreamer_FIND_VERSION "1.0")
find_package(GStreamer REQUIRED)
# GStreamer requires ICU on Mac OS
if (APPLE)
set(ENV{PKG_CONFIG_PATH} "/usr/local/opt/icu4c/lib/pkgconfig")
pkg_search_module(ICU_UC icu-uc)
endif()
if (GSTREAMER_FOUND)
if("${GAZEBO_VERSION}" VERSION_LESS "8.0")
find_package (Qt4)
Expand Down Expand Up @@ -210,6 +215,12 @@ if (GSTREAMER_FOUND)
${GLIB_LDFLAGS}
gobject-2.0
)

if (APPLE)
link_libraries(
${ICU_UC_LDFLAGS}
)
endif()
endif()

link_directories(
Expand Down

0 comments on commit ca6c738

Please sign in to comment.