File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,11 @@ jobs:
94
94
-DMUJOCO_HARDEN:BOOL=ON
95
95
tmpdir : " /tmp"
96
96
- os : windows-2022
97
- cmake_args : >-
98
- -DCMAKE_SYSTEM_VERSION="10.0.22621.0"
97
+ cmake_args : " "
99
98
cmake_build_args : " -- -m"
100
99
tmpdir : " C:/Temp"
101
100
- os : windows-2019
102
- cmake_args : >-
103
- -DCMAKE_SYSTEM_VERSION="10.0.22621.0"
101
+ cmake_args : " "
104
102
cmake_build_args : " -- -m"
105
103
tmpdir : " C:/Temp"
106
104
Original file line number Diff line number Diff line change @@ -158,6 +158,13 @@ if(APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS)
158
158
)
159
159
endif ()
160
160
161
+ # This code is a workaround for https://github.com/deepmind/mujoco/issues/862
162
+ # Once it can be assumed that no users uses a Windows SDK < 10.0.22000
163
+ # we can drop this code
164
+ if (MSVC AND CMAKE_SYSTEM_VERSION VERSION_LESS 10.0.22000 )
165
+ target_compile_definitions (mujoco PRIVATE MUJOCO_WINSDK_NO_STDALIGN_H )
166
+ endif ()
167
+
161
168
# Add a namespace alias to mujoco to be used by the examples.
162
169
# This simulates the install interface when building with sources.
163
170
add_library (mujoco::mujoco ALIAS mujoco )
Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ extern "C" {
29
29
#error "Compiler does not support C11."
30
30
#endif
31
31
#else
32
+ // This ifndef is workaround for https://github.com/deepmind/mujoco/issues/862
33
+ // Remove once we can assume that no one uses WIN SDK < 10.0.22000
34
+ #ifndef MUJOCO_WINSDK_NO_STDALIGN_H
32
35
#include <stdalign.h>
33
36
#endif
37
+ #endif
34
38
35
39
struct mjCollisionTree_ {
36
40
alignas(mjtNum ) int node1 ;
You can’t perform that action at this time.
0 commit comments