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:
Saran Tunyasuvunakool
2022-11-16 15:11:04 -08:00
committed by Copybara-Service
parent 9ecade0707
commit fa0f6399d5
+1 -1
View File
@@ -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.