Make Python bindings buildable with older versions of CMake.
Context: https://discourse.cmake.org/t/alias-and-not-globally-visible-targets/6305 PiperOrigin-RevId: 489051335 Change-Id: I1bbe189413d6f8abe97d3d8ceccf6541de69e2ae
This commit is contained in:
committed by
Copybara-Service
parent
9ecade0707
commit
fa0f6399d5
@@ -73,7 +73,7 @@ include(FindOrFetch)
|
||||
|
||||
# ==================== MUJOCO LIBRARY ==========================================
|
||||
if(NOT TARGET mujoco)
|
||||
add_library(mujoco SHARED IMPORTED)
|
||||
add_library(mujoco SHARED IMPORTED GLOBAL)
|
||||
if(APPLE)
|
||||
# On macOS, check if we are using mujoco.framework first.
|
||||
# Framework headers are searched differently from normal headers.
|
||||
|
||||
Reference in New Issue
Block a user