# "get\_property could not find TARGET clang-resource-headers" during -DCMAKE\_CXX\_FLAGS=-stdlib=libc++ '-DLLVM\_ENABLE\_RUNTIMES=compiler-rt;libcxx'

**URL:** https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624
**Category:** Usage
**Tags:** os:linux, gen:ninja
**Created:** [July 26, 2020, 1:01am UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624 "2020-07-26T01:01:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan\_Serdyuk](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ivan_serdyuk/32/217_2.png) [@Ivan\_Serdyuk](https://discourse.cmake.org/u/Ivan_Serdyuk)
#### Post date: [July 26, 2020, 1:01am UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624/1 "2020-07-26T01:01:00Z")

</div>

Kind a hi.  
I was trying to compile [https://go.googlesource.com/gollvm/](https://go.googlesource.com/gollvm/) using Clang’s C++ compiler and libc++ (instead of GCC and libstdc++ - this project is pretty much LLVM related, which itself means that it could rely on LLVM related sub-projects, at maximum).

[https://github.com/golang/go/issues/40407](https://github.com/golang/go/issues/40407) was formed - it contains my brief explanation.

Ivan

---

<div class="post-metadata">

### Author: ![Ivan\_Serdyuk](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ivan_serdyuk/32/217_2.png) [@Ivan\_Serdyuk](https://discourse.cmake.org/u/Ivan_Serdyuk)
#### Post date: [July 26, 2020, 1:42am UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624/2 "2020-07-26T01:42:20Z")

</div>

Wasn’t able to attach these files - so here are my links to the log files:  
[CMakeError.log](https://drive.google.com/file/d/1AzRTP1S-iRMmDmRDjIqC63W3iegM8Kl-/view?usp=sharing)

[CMakeOutput.log](https://drive.google.com/file/d/1reuCIBvgYJOuG0z765-IG6UdetL5r3ve/view?usp=sharing)

Ivan

---

<div class="post-metadata">

### Author: ![bill.hoffman](https://discourse.cmake.org/user_avatar/discourse.cmake.org/bill.hoffman/32/13_2.png) [@bill.hoffman](https://discourse.cmake.org/u/bill.hoffman)
#### Post date: [July 27, 2020, 10:36pm UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624/3 "2020-07-27T22:36:27Z")

</div>

This is a bug in the Go CMake files when -DLLVM\_ENABLE\_RUNTIMES=compiler-rt;libcxx is specified it references a target that has not been created.

---

<div class="post-metadata">

### Author: ![Ivan\_Serdyuk](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ivan_serdyuk/32/217_2.png) [@Ivan\_Serdyuk](https://discourse.cmake.org/u/Ivan_Serdyuk)
#### Post date: [January 13, 2021, 8:25pm UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624/4 "2021-01-13T20:25:31Z")

</div>

OK, this could be closed
