PKGBUILDs/extra/opencolorio/yaml-cpp-0.8.patch

24 lines
872 B
Diff
Raw Normal View History

2023-12-24 16:45:39 +00:00
diff --git a/share/cmake/modules/Findyaml-cpp.cmake b/share/cmake/modules/Findyaml-cpp.cmake
index 59558ce6..c5e051ac 100644
--- a/share/cmake/modules/Findyaml-cpp.cmake
+++ b/share/cmake/modules/Findyaml-cpp.cmake
@@ -42,10 +42,6 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
find_package(yaml-cpp ${yaml-cpp_FIND_VERSION} CONFIG QUIET)
endif()
- if(yaml-cpp_FOUND)
- get_target_property(yaml-cpp_LIBRARY yaml-cpp LOCATION)
- else()
-
# As yaml-cpp-config.cmake search fails, search an installed library
# using yaml-cpp.pc .
@@ -111,7 +107,6 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
if(PC_yaml-cpp_FOUND)
set(yaml-cpp_VERSION "${PC_yaml-cpp_VERSION}")
endif()
- endif()
# Override REQUIRED if package can be installed
if(OCIO_INSTALL_EXT_PACKAGES STREQUAL MISSING)