Skip to content

Commit 08e11be

Browse files
simple_bindings: Use workaround for RobotLocomotion/drake#8540
1 parent c1cba81 commit 08e11be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drake_cmake_installed/src/simple_bindings/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ pybind11_add_module(example_module MODULE example_module.cc)
3737
# `pybind11_INCLUDE_DIRS` and cps2cmake defines this as an empty string,
3838
# we must explicitly link it to `pybind11::module`.
3939
target_link_libraries(example_module PUBLIC drake::drake pybind11::module)
40+
# Revert visibilty preset (workaround for RobotLocomotion/drake#8540).
41+
set_target_properties(example_module PROPERTIES CXX_VISIBILITY_PRESET "default")
4042

4143
add_test(NAME example_module_test COMMAND
4244
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/example_module_test.py")

0 commit comments

Comments
 (0)