Exclude CMake install steps for Emscripten.

Install steps aren't needed for WASM builds, and are causing issues with EXPORT relating to lodepng and miniz.

PiperOrigin-RevId: 914891405
Change-Id: If653fe7449b0166ad6762a3fad6b95e02f3532b1
This commit is contained in:
Saran Tunyasuvunakool
2026-05-13 08:54:57 -07:00
committed by Copybara-Service
parent e1f5534b5f
commit 9230b34fed
+1 -4
View File
@@ -296,11 +296,8 @@ if(BUILD_TESTING AND MUJOCO_BUILD_TESTS)
endif()
endif()
if(NOT (APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS))
if(NOT EMSCRIPTEN AND NOT (APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS))
set(MUJOCO_TARGETS mujoco)
if (EMSCRIPTEN)
list(APPEND MUJOCO_TARGETS lodepng)
endif()
# Install the libraries.
install(