vcpkg/ports/exiv2/dont-find-python.patch
JonLiu1993 6b07285422
[exiv2] update to 0.28.1 and fix build error (#35020)
* [exiv2] update to 0.28.1

* update version

* Fix option

* update version

---------

Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
2023-11-15 17:02:47 -08:00

18 lines
572 B
Diff

diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake
index 67a6cfd..d5006ff 100644
--- a/cmake/findDependencies.cmake
+++ b/cmake/findDependencies.cmake
@@ -30,10 +30,12 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
+if(EXIV2_BUILD_UNIT_TESTS)
find_package (Python3 COMPONENTS Interpreter)
if (NOT Python3_Interpreter_FOUND)
message(WARNING "Python3 was not found. Python tests under the 'tests' folder will not be executed")
endif()
+endif()
find_package(Filesystem COMPONENTS Experimental Final REQUIRED)