# No SOURCES given to target: \_\_CMAKE\_\_CXX26 on ubuntu 25.04

**URL:** https://discourse.cmake.org/t/no-sources-given-to-target-cmake-cxx26-on-ubuntu-25-04/14240
**Category:** Development
**Tags:** os:linux, gen:ninja
**Created:** [June 16, 2025, 11:26am UTC](https://discourse.cmake.org/t/no-sources-given-to-target-cmake-cxx26-on-ubuntu-25-04/14240 "2025-06-16T11:26:10Z")
**Posts on this page:** 1
**Showing post:** 10

<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: [June 17, 2025, 5:01am UTC](https://discourse.cmake.org/t/no-sources-given-to-target-cmake-cxx26-on-ubuntu-25-04/14240/10 "2025-06-17T05:01:31Z")

</div>

> [@ClausKlein](#):
>
> How may I control to use libc++ with clang++?

I used `CXXFLAGS=-stdlib=libc++` in the environment.

---

_[View the full topic](https://discourse.cmake.org/t/no-sources-given-to-target-cmake-cxx26-on-ubuntu-25-04/14240)._
