mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-10 00:09:07 +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
11 lines
382 B
CMake
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()
|