File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,13 @@ if(NOT @BUILD_SHARED_LIBS@) # if(NOT BUILD_SHARED_LIBS)
99 endif ()
1010
1111 if (@EXIV2_ENABLE_BMFF@ AND @EXIV2_ENABLE_BROTLI@) # if(EXIV2_ENABLE_BMFF AND EXIV2_ENABLE_BROTLI)
12- find_dependency(Brotli REQUIRED)
12+ find_package (Brotli QUIET )
13+ if (NOT Brotli_FOUND)
14+ message (FATAL_ERROR
15+ "Static builds of exiv2 require Brotli. "
16+ "Please provide FindBrotli.cmake on CMAKE_MODULE_PATH "
17+ "or point to the cmake/ dir in the exiv2 source tree." )
18+ endif ()
1319 endif ()
1420
1521 if (@EXIV2_ENABLE_WEBREADY@) # if(EXIV2_ENABLE_WEBREADY)
@@ -33,7 +39,13 @@ if(NOT @BUILD_SHARED_LIBS@) # if(NOT BUILD_SHARED_LIBS)
3339 endif ()
3440
3541 if (@EXIV2_ENABLE_INIH@) # if(EXIV2_ENABLE_INIH)
36- find_dependency(inih REQUIRED)
42+ find_package (inih QUIET )
43+ if (NOT inih_FOUND)
44+ message (FATAL_ERROR
45+ "Static builds of exiv2 require inih. "
46+ "Please provide FindInih.cmake on CMAKE_MODULE_PATH "
47+ "or point to the cmake/ dir in the exiv2 source tree." )
48+ endif ()
3749 endif ()
3850
3951 if (NOT "@EXV_HAVE_STD_FORMAT@" ) # if(NOT EXV_HAVE_STD_FORMAT)
You can’t perform that action at this time.
0 commit comments