Skip to content

Commit

Permalink
[Py] remove unnecessary PYBIND11_NAMESPACE override
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Jan 31, 2024
1 parent 3338852 commit ba7fdb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions interfaces/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ target_include_directories(_alpaqa PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_link_libraries(_alpaqa PRIVATE pybind11::pybind11 alpaqa::alpaqa)
target_link_libraries(_alpaqa PRIVATE alpaqa::warnings)
target_compile_definitions(_alpaqa PRIVATE
MODULE_NAME=$<TARGET_FILE_BASE_NAME:_alpaqa>
PYBIND11_NAMESPACE=pybind11 # prevent visibility hidden in pybind11 common.h
)
MODULE_NAME=$<TARGET_FILE_BASE_NAME:_alpaqa>)
set_target_properties(_alpaqa PROPERTIES
CXX_VISIBILITY_PRESET "hidden"
VISIBILITY_INLINES_HIDDEN true
Expand Down

0 comments on commit ba7fdb7

Please sign in to comment.