mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
f5c732b40d
* [portfile functions] Override execute_process() to accept ALLOW_IN_DOWNLOAD_MODE option * [vcpkg install] Set VCPKG_DOWNLOAD_MODE when using --only-downloads option * [vcpkg_find_acquire_program] Allow in Download Mode * Don't stop when build fails for a package * Download sources for all packages in dependency graph * Improve output messages * Enable acquiring MSYS packages in download mode * Documentation * Update documentation * execute_process() always fails on Download Mode * Regenerate docs and fix formatting * Run clang-format * Use _execute_process on vcpkg_from_<source> helpers * Fix calls to _execute_process() when not in Download Mode
25 lines
794 B
CMake
25 lines
794 B
CMake
## # vcpkg_test_cmake
|
|
##
|
|
## Tests a built package for CMake `find_package()` integration.
|
|
##
|
|
## ## Usage:
|
|
## ```cmake
|
|
## vcpkg_test_cmake(PACKAGE_NAME <name> [MODULE])
|
|
## ```
|
|
##
|
|
## ## Parameters:
|
|
##
|
|
## ### PACKAGE_NAME
|
|
## The expected name to find with `find_package()`.
|
|
##
|
|
## ### MODULE
|
|
## Indicates that the library expects to be found via built-in CMake targets.
|
|
##
|
|
function(vcpkg_test_cmake)
|
|
# The following issues need to be addressed before re-enabling this function.
|
|
# 1. Use the actual vcpkg toolchain file.
|
|
# 2. Select a generator in the same method as vcpkg_configure_cmake() as though the PREFER_NINJA flag was always passed.
|
|
# 3. Fully emulate the toolchain file for the just-built package (just adding it to CMAKE_PREFIX_PATH is not enough).
|
|
return()
|
|
endfunction()
|