# import std; in cmake 3.30

**URL:** https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885
**Category:** Code
**Tags:** os:windows
**Created:** [May 22, 2024, 2:11pm UTC](https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885 "2024-05-22T14:11:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Fourkiotis](https://discourse.cmake.org/user_avatar/discourse.cmake.org/john_fourkiotis/32/3959_2.png) [@John\_Fourkiotis](https://discourse.cmake.org/u/John_Fourkiotis)
#### Post date: [May 22, 2024, 2:11pm UTC](https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885/1 "2024-05-22T14:11:23Z")

</div>

I’m trying to follow the information mentioned about [importing std](https://www.kitware.com/import-std-in-cmake-3-30/) using MSVC but I get the following error during project generation:

```auto
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.
-- The CXX compiler identification is MSVC 19.40.33808.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin
/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (21.1s)
CMake Error in CMakeLists.txt:
  The "CXX_MODULE_STD" property on the target "hellostd" requires that the
  "__CMAKE::CXX23" target exist, but it was not provided by the toolchain.
  Reason:

    Unsupported generator: Visual Studio 17 2022

```

Any clues ? I’ve updated Visual Studio to the latest version already.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 22, 2024, 4:06pm UTC](https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885/2 "2024-05-22T16:06:57Z")

</div>

The Visual Studio generator is not supported yet; you’ll need to use the `Ninja` generator.

---

<div class="post-metadata">

### Author: ![John\_Fourkiotis](https://discourse.cmake.org/user_avatar/discourse.cmake.org/john_fourkiotis/32/3959_2.png) [@John\_Fourkiotis](https://discourse.cmake.org/u/John_Fourkiotis)
#### Post date: [May 22, 2024, 6:05pm UTC](https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885/3 "2024-05-22T18:05:21Z")

</div>

Thank you.

---

<div class="post-metadata">

### Author: ![Elvis\_Dukaj](https://discourse.cmake.org/user_avatar/discourse.cmake.org/elvis_dukaj/32/4983_2.png) [@Elvis\_Dukaj](https://discourse.cmake.org/u/Elvis_Dukaj)
#### Post date: [October 4, 2024, 8:56am UTC](https://discourse.cmake.org/t/import-std-in-cmake-3-30/10885/4 "2024-10-04T08:56:44Z")

</div>

Is it still true? According to [cmake-cxxmodules(7) — CMake 3.30.4 Documentation](https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html) this should be supported but I have the same version issue despite using cmake 3.30.4 and msvc v194.
