From 9230b34fedab6d47316834eeccf641baf8f76c11 Mon Sep 17 00:00:00 2001 From: Saran Tunyasuvunakool Date: Wed, 13 May 2026 08:54:57 -0700 Subject: [PATCH] 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 --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92254c2d..9157b7c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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(