File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ add_executable(all_tests tests/src/all_tests.cpp)
256
256
target_link_libraries (all_tests PRIVATE ${PROJECT_NAME} _lib ${BOOST_LIB} test_fixtures ${LRT} )
257
257
if (PYTHON_INTERFACE )
258
258
if (${PYTHONLIBS_FOUND} )
259
- target_link_libraries (all_tests PUBLIC pybind11::embed )
259
+ target_link_libraries (all_tests PRIVATE pybind11::embed )
260
260
endif ()
261
261
endif ()
262
262
@@ -270,7 +270,6 @@ if(PYTHON_INTERFACE)
270
270
if (${PYTHONLIBS_FOUND} )
271
271
#python interface
272
272
set (PYTHON_SUPPORT ${PYTHON_LIBRARIES} )
273
- target_link_libraries (${PROJECT_NAME} _lib PUBLIC pybind11::embed )
274
273
INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_DIRS} )
275
274
include_directories (pybind11/include )
276
275
include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments