Skip to content

Commit

Permalink
sim2b: add bullet and bullet_robotics CFLAGS
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kmarkus committed Nov 9, 2020
1 parent 104630c commit 7ecccd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nbx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if(ENABLE_BULLET)
${BULLET_ROBOTICS_LIBRARIES}
)

target_compile_options(sim2b_bullet PUBLIC
${BULLET_CFLAGS}
${BULLET_ROBOTICS_CFLAGS}
)

install(
TARGETS sim2b_bullet
Expand Down

0 comments on commit 7ecccd8

Please sign in to comment.