mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 17:48:15 +08:00
94f73f4cd0
Co-authored-by: Monica <v-liumonica@microsoft.com>
66 lines
1.9 KiB
Diff
66 lines
1.9 KiB
Diff
diff --git a/src/assimp/build_vars.cmake b/src/assimp/build_vars.cmake
|
|
index 821de33..b2283fb 100644
|
|
--- a/src/assimp/build_vars.cmake
|
|
+++ b/src/assimp/build_vars.cmake
|
|
@@ -1,5 +1,7 @@
|
|
# add assimp if available
|
|
-find_package(assimp 5.1 QUIET)
|
|
+if (VSGXCHANGE_WITH_ASSIMP)
|
|
+ find_package(assimp CONFIG REQUIRED)
|
|
+endif()
|
|
|
|
if(assimp_FOUND)
|
|
OPTION(vsgXchange_assimp "Optional Assimp support provided" ON)
|
|
diff --git a/src/curl/build_vars.cmake b/src/curl/build_vars.cmake
|
|
index 3f8206d..bdf1cd7 100644
|
|
--- a/src/curl/build_vars.cmake
|
|
+++ b/src/curl/build_vars.cmake
|
|
@@ -1,5 +1,7 @@
|
|
# add CURL if available
|
|
-find_package(CURL)
|
|
+if(VSGXCHANGE_WITH_CURL)
|
|
+ find_package(CURL REQUIRED)
|
|
+endif()
|
|
|
|
if(CURL_FOUND)
|
|
OPTION(vsgXchange_curl "Optional CURL support provided" ON)
|
|
diff --git a/src/freetype/build_vars.cmake b/src/freetype/build_vars.cmake
|
|
index cb63a8b..2b2343f 100644
|
|
--- a/src/freetype/build_vars.cmake
|
|
+++ b/src/freetype/build_vars.cmake
|
|
@@ -1,5 +1,7 @@
|
|
# add freetype if available
|
|
-find_package(Freetype)
|
|
+if(VSGXCHANGE_WITH_FREETYPE)
|
|
+ find_package(Freetype REQUIRED)
|
|
+endif()
|
|
|
|
if(FREETYPE_FOUND)
|
|
OPTION(vsgXchange_freetype "Freetype support provided" ON)
|
|
diff --git a/src/gdal/build_vars.cmake b/src/gdal/build_vars.cmake
|
|
index dd240b0..cdcbdb4 100644
|
|
--- a/src/gdal/build_vars.cmake
|
|
+++ b/src/gdal/build_vars.cmake
|
|
@@ -1,5 +1,7 @@
|
|
# add GDAL if available
|
|
-find_package(GDAL QUIET)
|
|
+if(VSGXCHANGE_WITH_GDAL)
|
|
+ find_package(GDAL CONFIG REQUIRED)
|
|
+endif()
|
|
|
|
if(GDAL_FOUND)
|
|
OPTION(vsgXchange_GDAL "GDAL support provided" ON)
|
|
diff --git a/src/openexr/build_vars.cmake b/src/openexr/build_vars.cmake
|
|
index c4c880a..6595c41 100644
|
|
--- a/src/openexr/build_vars.cmake
|
|
+++ b/src/openexr/build_vars.cmake
|
|
@@ -1,5 +1,7 @@
|
|
# add openexr if available
|
|
-find_package(OpenEXR QUIET)
|
|
+if(VSGXCHANGE_WITH_OPENEXR)
|
|
+ find_package(OpenEXR CONFIG REQUIRED)
|
|
+endif()
|
|
|
|
if(OpenEXR_FOUND)
|
|
OPTION(vsgXchange_openexr "Optional OpenEXR support provided" ON)
|