Skip to content

Commit 7ecccd8

Browse files
committed
sim2b: add bullet and bullet_robotics CFLAGS
Among others, this causes sim2b to be compiled with BT_USE_DOUBLE_PRECISION if it was also used for the library. If these don't match, the simulation will just produce nan's. Suggested-by: Sven Schneider <[email protected]> Signed-off-by: Markus Klotzbuecher <[email protected]>
1 parent 104630c commit 7ecccd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nbx/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if(ENABLE_BULLET)
1919
${BULLET_ROBOTICS_LIBRARIES}
2020
)
2121

22+
target_compile_options(sim2b_bullet PUBLIC
23+
${BULLET_CFLAGS}
24+
${BULLET_ROBOTICS_CFLAGS}
25+
)
2226

2327
install(
2428
TARGETS sim2b_bullet

0 commit comments

Comments
 (0)