mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

Some deployments may not be able to discover the metadata file reliably (e.g., custom `clang` builds on macOS while using the SDK's stdlib or distribution bugs). Allow users to force the location so that compiler-driven detection doesn't have to bend over backwards for unforeseen bugs.
12 lines
383 B
ReStructuredText
12 lines
383 B
ReStructuredText
CMAKE_CXX_STDLIB_MODULES_JSON
|
|
-----------------------------
|
|
|
|
.. versionadded:: 4.2
|
|
|
|
This variable may be used to set the path to a metadata file for CMake to
|
|
understand how the ``import std`` target for the active CXX compiler should be
|
|
constructed.
|
|
|
|
This should only be used when the compiler does not know how to discover the
|
|
relevant module metadata file without such assistance.
|