vcpkg/ports/pangolin/fix-dependency-python.patch
Jack·Boos·Yu 9a751370f3
[vcpkg baseline] Fix openimageio and pangolin build failures on Linux (#12856)
* [openimageio] Add dependency libheif

* [pangolin] Fix link to linux system lib libutil

* [libheif] Install extra headers for other ports(oiio)
2020-08-12 09:35:03 -07:00

15 lines
477 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7f364a7..9e0baac 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -213,6 +213,9 @@ endif()
find_package(PythonLibs QUIET)
if(BUILD_PANGOLIN_GUI AND BUILD_PANGOLIN_VARS AND PYTHONLIBS_FOUND AND NOT _WIN_)
set(HAVE_PYTHON 1)
+ if (UNIX)
+ set(PYTHON_LIBRARY ${PYTHON_LIBRARY} dl util)
+ endif()
list(APPEND HEADERS
${INCDIR}/console/ConsoleInterpreter.h
${INCDIR}/console/ConsoleView.h