# Variables used in g++ compiler command line

**URL:** https://discourse.cmake.org/t/variables-used-in-g-compiler-command-line/9684
**Category:** Usage
**Created:** [December 19, 2023, 7:26pm UTC](https://discourse.cmake.org/t/variables-used-in-g-compiler-command-line/9684 "2023-12-19T19:26:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_King](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/9fc29f/32.png) [@Chris\_King](https://discourse.cmake.org/u/Chris_King)
#### Post date: [December 19, 2023, 7:26pm UTC](https://discourse.cmake.org/t/variables-used-in-g-compiler-command-line/9684/1 "2023-12-19T19:26:09Z")

</div>

I am trying to build some c++ code. The default command line for the c++ compiler has some include directories that I don’t want.  
I think this would be easier if I know what variables were used to build the compiler command line but I can’t find that in the documentation anywhere. Is that documented somewhere?  
I think I can modify the variable using set\_target\_properties, but I can’t figure out what properties are set on my target. Is there anyway to list what properties are set on a target?

---

<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: [December 21, 2023, 1:21am UTC](https://discourse.cmake.org/t/variables-used-in-g-compiler-command-line/9684/2 "2023-12-21T01:21:46Z")

</div>

I think you might want to configure with `CMAKE_CXX_FLAGS=-nostdinc` to remove those includes.
