Skip to content

Commit a5b8be5

Browse files
authored
Add headers to the library so they're visible in IDE (#398)
1 parent 67ff25b commit a5b8be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/SofaPython3Tools.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function(SP3_add_python_module)
117117
# We are doing manually what's usually done with pybind11_add_module(${A_TARGET} SHARED "${A_SOURCES}")
118118
# since we got some problems on MacOS using recent versions of pybind11 where the SHARED argument wasn't taken
119119
# into account
120-
python_add_library(${A_TARGET} SHARED "${A_SOURCES}")
120+
python_add_library(${A_TARGET} SHARED ${A_HEADERS} ${A_SOURCES})
121121
add_library(SofaPython3::${A_TARGET} ALIAS ${A_TARGET})
122122

123123
if ("${pybind11_VERSION}" VERSION_GREATER_EQUAL "2.6.0")

0 commit comments

Comments
 (0)