vcpkg/ports/graphviz/cmake-project-include.cmake
Kai Pastor 7ceccee7f8
[graphviz,librsvg,libcroco] Refresh (#33964)
* [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
2023-09-25 23:47:35 -07:00

11 lines
382 B
CMake

if(MSVC)
find_package(unofficial-getopt-win32 CONFIG REQUIRED)
set(GETOPT_LIBRARY "unofficial::getopt-win32::getopt" CACHE INTERNAL "vcpkg")
set(GETOPT_RUNTIME_LIBRARY "unused" CACHE INTERNAL "vcpkg")
endif()
if(MINGW AND BUILD_SHARED_LIBS AND NOT CMAKE_CROSSCOMPILING)
# Prevent running `configure_plugins.cmake`.
set(CMAKE_CROSSCOMPILING 1)
endif()