mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 09:50:04 +08:00
19 lines
626 B
Diff
19 lines
626 B
Diff
|
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
|
||
|
index dc260a7..433ffbb 100644
|
||
|
--- a/src/python/CMakeLists.txt
|
||
|
+++ b/src/python/CMakeLists.txt
|
||
|
@@ -6,6 +6,13 @@
|
||
|
checked_find_package (pybind11 REQUIRED
|
||
|
VERSION_MIN 2.4.2)
|
||
|
|
||
|
+if(USE_FFMPEG AND UNIX AND NOT BUILD_SHARED_LIBS AND VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
||
|
+ include(CheckLinkerFlag)
|
||
|
+ check_linker_flag(C "LINKER:-Bsymbolic" supports_bsymbolic)
|
||
|
+ if(supports_bsymbolic)
|
||
|
+ add_link_options("LINKER:-Bsymbolic")
|
||
|
+ endif()
|
||
|
+endif()
|
||
|
|
||
|
file (GLOB python_srcs *.cpp)
|
||
|
setup_python_module (TARGET PyOpenImageIO
|