Skip to content

Commit 9230b34

Browse files
saran-tcopybara-github
authored andcommitted
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
1 parent e1f5534 commit 9230b34

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,8 @@ if(BUILD_TESTING AND MUJOCO_BUILD_TESTS)
296296
endif()
297297
endif()
298298

299-
if(NOT (APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS))
299+
if(NOT EMSCRIPTEN AND NOT (APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS))
300300
set(MUJOCO_TARGETS mujoco)
301-
if (EMSCRIPTEN)
302-
list(APPEND MUJOCO_TARGETS lodepng)
303-
endif()
304301

305302
# Install the libraries.
306303
install(

0 commit comments

Comments
 (0)