# \`\`import std\`\` doesn't work on windows

**URL:** https://discourse.cmake.org/t/import-std-doesnt-work-on-windows/14268
**Category:** Usage
**Tags:** os:windows, gen:ninja
**Created:** [June 20, 2025, 8:57am UTC](https://discourse.cmake.org/t/import-std-doesnt-work-on-windows/14268 "2025-06-20T08:57:25Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [June 20, 2025, 4:32pm UTC](https://discourse.cmake.org/t/import-std-doesnt-work-on-windows/14268/8 "2025-06-20T16:32:43Z")

</div>

### Then you need to analyse first what goes wrong within your build environment!

see i.e.: [No SOURCES given to target: \_\_CMAKE\_\_CXX26 on ubuntu 25.04 - #6 by ClausKlein](https://discourse.cmake.org/t/no-sources-given-to-target-cmake-cxx26-on-ubuntu-25-04/14240/6)

---

_[View the full topic](https://discourse.cmake.org/t/import-std-doesnt-work-on-windows/14268)._
