# GHS Language Standard not getting picked up

**URL:** <https://discourse.cmake.org/t/ghs-language-standard-not-getting-picked-up/8169>\
**Category:** Code\
**Created:** [May 19, 2023, 9:39pm UTC](https://discourse.cmake.org/t/ghs-language-standard-not-getting-picked-up/8169 "2023-05-19T21:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Speqtre](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@Speqtre](https://discourse.cmake.org/u/Speqtre)\
**Post date:** [May 19, 2023, 9:39pm UTC](https://discourse.cmake.org/t/ghs-language-standard-not-getting-picked-up/8169/1 "2023-05-19T21:39:18Z")

</div>

My GHS MULTI project builds and compiles fine in GHS. I’m able to setup my cmake project without errors using:

> cmake -G “Green Hills MULTI” -A arm64 -T c:\ghs\comp\_202214 -D GHS\_OS\_DIR=…/int1179teledyne -D GHS\_BSP\_NAME=devtree-arm64 …

but my builds fail when compiling after that because it’s not picking up the C++11 standard.

I’ve tried

> set(CMAKE\_CXX\_STANDARD 11)  
> set(CMAKE\_CXX\_STANDARD\_REQUIRED ON)

but that doesn’t take.

My .gpj files have

> #!gbuild  
> #component integrity\_virtual\_address\_space  
> [Program]  
> -livfs  
> –c++11

but that language standard option doesn’t seem to get picked up anywhere.

Any idea what I’m missing?

---

<div class="post-metadata">

**Author:** ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)\
**Post date:** [May 19, 2023, 11:35pm UTC](https://discourse.cmake.org/t/ghs-language-standard-not-getting-picked-up/8169/2 "2023-05-19T23:35:00Z")

</div>

That hasn’t been implemented. You can specify the option using `target_compile_options()`.
