Skip to content

Commit 898e67b

Browse files
committedDec 8, 2024··
link privately opencv
1 parent 2e254f6 commit 898e67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (PROJECT_IS_TOP_LEVEL)
5050
#
5151
file(GLOB sources cvnp/*.h cvnp/*.cpp)
5252
pybind11_add_module(cvnp ${sources} main/cvnp_main.cpp)
53-
target_link_libraries(cvnp PUBLIC opencv_core)
53+
target_link_libraries(cvnp PRIVATE opencv_core)
5454
target_include_directories(cvnp PUBLIC ${CMAKE_CURRENT_LIST_DIR})
5555
# Copy the .so or .pyd module into this dir, to facilitate the tests
5656
add_custom_command(

0 commit comments

Comments
 (0)
Please sign in to comment.