Skip to content

Commit 6d4a18e

Browse files
authored
Docs: Updated for new import std flag (#2611)
* Updated Usage.md for new import std flag * changed previous occurances of 4.3 to 4.4
1 parent 6225697 commit 6d4a18e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/Usage.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -826,14 +826,14 @@ Refer to the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cm
826826
CMake provides the [FindVulkan module](https://cmake.org/cmake/help/latest/module/FindVulkan.html), which may be used to source the Vulkan SDK and Vulkan headers on your system.
827827

828828
<details>
829-
<summary>For CMake versions earlier than 4.3.0</summary>
829+
<summary>For CMake versions earlier than 4.4.0</summary>
830830

831-
If you have CMake versions between 3.30 and 4.3, where the [`CXX_MODULE_STD`](https://cmake.org/cmake/help/v4.3/prop_tgt/CXX_MODULE_STD.html) variable is still experimental, then make sure to provide the following UUID to enable CMake's experimental support for the C++ standard library module.
831+
If you have CMake versions between 3.30 and 4.4, where the [`CXX_MODULE_STD`](https://cmake.org/cmake/help/v4.4/prop_tgt/CXX_MODULE_STD.html) variable is still experimental, then make sure to provide the following UUID to enable CMake's experimental support for the C++ standard library module.
832832
To find the precise value for your specific version, check out the correct release tag and look for `CMAKE_EXPERIMENTAL_CXX_IMPORT_STD` in [Help/dev/experimental.rst](https://gitlab.kitware.com/cmake/cmake/-/blob/master/Help/dev/experimental.rst).
833833

834834
```bash
835-
# example UUID for CMake 4.3
836-
cmake -DCMAKE_EXPERIMENTAL_CXX_IMPORT_STD=451f2fe2-a8a2-47c3-bc32-94786d8fc91b ...
835+
# example UUID for CMake 4.4
836+
cmake -DCMAKE_EXPERIMENTAL_CXX_IMPORT_STD=f35a9ac6-8463-4d38-8eec-5d6008153e7d ...
837837
```
838838

839839
This UUID variable may also be set before the `project()` call, or in a [CMake preset file](https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#configure-preset) in the `cacheVariables` key for a configure preset.
@@ -843,11 +843,13 @@ This UUID variable may also be set before the `project()` call, or in a [CMake p
843843
A complete example `CMakeLists.txt` file for a project using the Vulkan-Hpp named module is provided below.
844844

845845
```cmake
846-
cmake_minimum_required( VERSION 3.30...4.3 )
846+
cmake_minimum_required( VERSION 3.30...4.4 )
847847
848848
# either set the experimental gate here or via CLI
849849
if( NOT CMAKE_EXPERIMENTAL_CXX_IMPORT_STD )
850-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL 4.3 )
850+
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL 4.4 )
851+
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD f35a9ac6-8463-4d38-8eec-5d6008153e7d)
852+
elseif( ${CMAKE_VERSION} VERSION_GREATER_EQUAL 4.3 )
851853
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD 451f2fe2-a8a2-47c3-bc32-94786d8fc91b)
852854
elseif( ${CMAKE_VERSION} VERSION_GREATER_EQUAL 4.2 )
853855
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD d0edc3af-4c50-42ea-a356-e2862fe7a444)

0 commit comments

Comments
 (0)