Skip to content

Commit

Permalink
Don't export unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Mar 14, 2022
1 parent 4ff1878 commit f3c0400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/helpers/CheckDependentLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ macro (gdal_check_package name purpose)
message(STATUS
"${key} has been found, but is disabled due to GDAL_USE_EXTERNAL_LIBS=OFF. Enable it by setting GDAL_USE_${key}=ON"
)
set(_find_dependency_args "")
endif ()
endif ()
if (_gcpp_status AND _GCP_DISABLED_BY_DEFAULT)
set(_gcpp_status OFF)
if (HAVE_${key} AND NOT GDAL_USE_${key})
message(STATUS "${key} has been found, but is disabled by default. Enable it by setting GDAL_USE_${key}=ON")
set(_find_dependency_args "")
endif ()
endif ()
cmake_dependent_option(GDAL_USE_${key} "Set ON to use ${key}" ${_gcpp_status} "HAVE_${key}" OFF)
Expand Down

0 comments on commit f3c0400

Please sign in to comment.