Skip to content

Commit 9084d94

Browse files
authored
[skip ci] Merge pull request #34 from rikigigi/devel
ooops...
2 parents f630d7a + 802b6ba commit 9084d94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ add_executable(all_tests tests/src/all_tests.cpp)
256256
target_link_libraries(all_tests PRIVATE ${PROJECT_NAME}_lib ${BOOST_LIB} test_fixtures ${LRT} )
257257
if(PYTHON_INTERFACE)
258258
if (${PYTHONLIBS_FOUND})
259-
target_link_libraries(all_tests PUBLIC pybind11::embed)
259+
target_link_libraries(all_tests PRIVATE pybind11::embed)
260260
endif()
261261
endif()
262262

@@ -270,7 +270,6 @@ if(PYTHON_INTERFACE)
270270
if (${PYTHONLIBS_FOUND})
271271
#python interface
272272
set (PYTHON_SUPPORT ${PYTHON_LIBRARIES})
273-
target_link_libraries(${PROJECT_NAME}_lib PUBLIC pybind11::embed)
274273
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
275274
include_directories(pybind11/include)
276275
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)