|
|
@ -4,6 +4,9 @@ set(PYTHON_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../") |
|
|
|
# try to use dynamic symbols linking with libpython.so |
|
|
|
# try to use dynamic symbols linking with libpython.so |
|
|
|
set(OPENCV_FORCE_PYTHON_LIBS OFF CACHE BOOL "") |
|
|
|
set(OPENCV_FORCE_PYTHON_LIBS OFF CACHE BOOL "") |
|
|
|
string(REPLACE "-Wl,--no-undefined" "" CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}") |
|
|
|
string(REPLACE "-Wl,--no-undefined" "" CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}") |
|
|
|
|
|
|
|
if(NOT WIN32 AND NOT APPLE AND NOT OPENCV_PYTHON_SKIP_LINKER_EXCLUDE_LIBS) |
|
|
|
|
|
|
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--exclude-libs=ALL") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
ocv_add_module(${MODULE_NAME} BINDINGS) |
|
|
|
ocv_add_module(${MODULE_NAME} BINDINGS) |
|
|
|
|
|
|
|
|
|
|
|