vcpkg/ports/colmap/fix-dependency-freeimage.patch
Jack·Boos·Yu 09fbac7283
[baseline][colmap] Fix find dependency freeimage (#15886)
* [colmap] Fix find dependency freeimage

* update version record
2021-01-27 18:18:22 -08:00

15 lines
364 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b05097c..cdd8ca4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,8 @@ find_package(Boost REQUIRED COMPONENTS
find_package(Eigen3 REQUIRED)
-find_package(FreeImage REQUIRED)
+find_package(freeimage CONFIG REQUIRED)
+set(FREEIMAGE_LIBRARIES freeimage::FreeImage)
find_package(Glog REQUIRED)