-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[vcpkg_configure_cmake] Introduce REQUIRE_ALL_PACKAGES #15808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "armadillo", | ||
| "version": "10.2.0", | ||
| "port-version": 1, | ||
| "description": "Armadillo is a high quality linear algebra library (matrix maths) for the C++ language, aiming towards a good balance between speed and ease of use", | ||
| "homepage": "http://arma.sourceforge.net", | ||
| "dependencies": [ | ||
| "blas", | ||
| "lapack" | ||
| ] | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "cppkafka", | ||
| "version": "0.3.1", | ||
| "port-version": 3, | ||
| "description": "cppkafka allows C++ applications to consume and produce messages using the Apache Kafka protocol. The library is built on top of librdkafka, and provides a high level API that uses modern C++ features to make it easier to write code while keeping the wrapper's performance overhead to a minimum.", | ||
| "homepage": "https://github.com/mfontanini/cppkafka", | ||
| "dependencies": [ | ||
| "boost-program-options", | ||
| "librdkafka" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY) | ||
| get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" DIRECTORY) | ||
|
|
||
| add_library(GDAL::GDAL UNKNOWN IMPORTED) | ||
|
|
||
| set(GDAL_INCLUDE_DIRS "${_IMPORT_PREFIX}/include") | ||
| set(GDAL_INCLUDE_DIR "${GDAL_INCLUDE_DIRS}" CACHE STRING "") | ||
|
|
||
| find_library(GDAL_LIBRARY_RELEASE NAMES gdal_i gdal PATHS "${_IMPORT_PREFIX}/lib" NO_DEFAULT_PATH REQUIRED) | ||
| set(GDAL_LIBRARIES optimized "${GDAL_LIBRARY_RELEASE}") | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) | ||
| set_target_properties( | ||
| GDAL::GDAL PROPERTIES | ||
| INTERFACE_INCLUDE_DIRECTORIES "${GDAL_INCLUDE_DIRS}" | ||
| IMPORTED_LOCATION_RELEASE "${GDAL_LIBRARY_RELEASE}" | ||
| ) | ||
|
|
||
| find_library(GDAL_LIBRARY_DEBUG NAMES gdal_i_d gdal_d gdal_i gdal PATHS "${_IMPORT_PREFIX}/debug/lib" NO_DEFAULT_PATH) | ||
| if(GDAL_LIBRARY_DEBUG) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
| set_target_properties( | ||
| GDAL::GDAL PROPERTIES | ||
| IMPORTED_LOCATION_DEBUG "${GDAL_LIBRARY_DEBUG}" | ||
| ) | ||
| list(APPEND GDAL_LIBRARIES debug "${GDAL_LIBRARY_DEBUG}") | ||
| endif() | ||
|
|
||
| include(CMakeFindDependencyMacro) | ||
|
|
||
| find_dependency(geos CONFIG) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY INTERFACE_LINK_LIBRARIES GEOS::geos_c GEOS::geos) | ||
|
|
||
| find_dependency(OpenJPEG CONFIG) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY INTERFACE_LINK_LIBRARIES openjp2) | ||
|
|
||
| if(@DEPENDENCY_TIFF@) | ||
| find_dependency(TIFF) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY INTERFACE_LINK_LIBRARIES TIFF::TIFF) | ||
| endif() | ||
|
|
||
| find_dependency(geotiff CONFIG) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY INTERFACE_LINK_LIBRARIES geotiff_library) | ||
|
|
||
| find_dependency(LibXml2) | ||
| set_property(TARGET GDAL::GDAL APPEND PROPERTY INTERFACE_LINK_LIBRARIES LibXml2::LibXml2) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| The package GDAL provides CMake targets: | ||
| The package gdal:@TARGET_TRIPLET@ is compatible with built-in CMake Targets: | ||
|
|
||
| find_package(GDAL REQUIRED) | ||
| target_include_directories(main PRIVATE ${GDAL_INCLUDE_DIRS}) | ||
| target_link_libraries(main PRIVATE ${GDAL_LIBRARIES}) | ||
| target_link_libraries(main PRIVATE GDAL::GDAL) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1 @@ | ||
| include(FindPackageHandleStandardArgs) | ||
| include(SelectLibraryConfigurations) | ||
|
|
||
| find_path(GDAL_INCLUDE_DIR NAMES gdal.h HINTS ${CURRENT_INSTALLED_DIR}) | ||
|
|
||
| find_library(GDAL_LIBRARY_DEBUG NAMES gdal_d gdal_i_d gdal NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED) | ||
| find_library(GDAL_LIBRARY_RELEASE NAMES gdal_i gdal NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED) | ||
|
|
||
| select_library_configurations(GDAL) | ||
|
|
||
| set(GDAL_INCLUDE_DIRS ${GDAL_INCLUDE_DIR}) | ||
| set(GDAL_LIBRARIES ${GDAL_LIBRARY}) | ||
| _find_package(${ARGS} CONFIG) | ||
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt | ||
| index 8a81a2a..b3e3da1 100644 | ||
| --- a/tools/CMakeLists.txt | ||
| +++ b/tools/CMakeLists.txt | ||
| @@ -12,7 +12,7 @@ | ||
| ################################################################################# | ||
|
|
||
|
|
||
| -if(NOT MSVC) | ||
| +if(TRUE) | ||
| # Consider CMAKE_INSTALL_PREFIX with spaces | ||
| string(REPLACE " " "\\ " ESCAPED_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) | ||
| configure_file( | ||
| diff --git a/tools/geos.pc.cmake b/tools/geos.pc.cmake | ||
| index 0a9df7f..443b770 100644 | ||
| --- a/tools/geos.pc.cmake | ||
| +++ b/tools/geos.pc.cmake | ||
| @@ -8,4 +8,4 @@ Description: Geometry Engine, Open Source - C API | ||
| Requires: | ||
| Version: @GEOS_VERSION@ | ||
| Cflags: -I${includedir} | ||
| -Libs: -L${libdir} -lgeos_c | ||
| +Libs: -L${libdir} -lgeos_c@CMAKE_DEBUG_POSTFIX@ -lgeos@CMAKE_DEBUG_POSTFIX@ |
Uh oh!
There was an error while loading. Please reload this page.