]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/docs/maintainers/internal/vcpkg_internal_get_cmake_vars.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / docs / maintainers / internal / vcpkg_internal_get_cmake_vars.md
1 # vcpkg_internal_get_cmake_vars
2
3 The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/).
4
5 **Only for internal use in vcpkg helpers. Behavior and arguments will change without notice.**
6 Runs a cmake configure with a dummy project to extract certain cmake variables
7
8 ## Usage
9 ```cmake
10 vcpkg_internal_get_cmake_vars(
11 [OUTPUT_FILE <output_file_with_vars>]
12 [OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
13 )
14 ```
15
16 ## Parameters
17 ### OPTIONS
18 Additional options to pass to the test configure call
19
20 ### OUTPUT_FILE
21 Variable to return the path to the generated cmake file with the detected `CMAKE_` variables set as `VCKPG_DETECTED_`
22
23 ## Notes
24 If possible avoid usage in portfiles.
25
26 ## Examples
27
28 * [vcpkg_configure_make](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_make.cmake)
29
30 ## Source
31 [scripts/cmake/vcpkg\_internal\_get\_cmake\_vars.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_internal_get_cmake_vars.cmake)