mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 03:07:20 +08:00
7ceccee7f8
* [graphviz] Cleanup * Refresh patches * Versions * Disable #pragma comment lib * DLLs without exports * [librsvg] Modernize * Revise vendored librsvg build * [libcroco] Revise vendored build * [librsvg] Revise vendored build, cont. * [libcroco] Fix version * [librsvg] Fix pc file * [librsvg] Fix config polyfill * Mingw fixes, no abs paths * No abs paths
15 lines
600 B
CMake
15 lines
600 B
CMake
file(READ "${CMAKE_CURRENT_LIST_DIR}/../libcroco/usage" usage)
|
|
message(WARNING "find_package(unofficial-libcroco) is deprecated.\n${usage}")
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(PkgConfig)
|
|
pkg_check_modules(VCPKG_LIBCROCO libcroco-0.6 IMPORTED_TARGET)
|
|
if(NOT VCPKG_LIBCROCO_FOUND)
|
|
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND 0)
|
|
elseif(NOT TARGET unofficial::libcroco::croco-0.6)
|
|
add_library(unofficial::libcroco::croco-0.6 INTERFACE IMPORTED)
|
|
set_target_properties(unofficial::libcroco::croco-0.6 PROPERTIES
|
|
INTERFACE_LINK_LIBRARIES PkgConfig::VCPKG_LIBCROCO
|
|
)
|
|
endif()
|