# Arguments for compiler checks

**URL:** https://discourse.cmake.org/t/arguments-for-compiler-checks/6096
**Category:** Development
**Created:** [July 19, 2022, 3:11pm UTC](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096 "2022-07-19T15:11:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![go2sh](https://discourse.cmake.org/user_avatar/discourse.cmake.org/go2sh/32/2606_2.png) [@go2sh](https://discourse.cmake.org/u/go2sh)
#### Post date: [July 19, 2022, 3:11pm UTC](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096/1 "2022-07-19T15:11:40Z")

</div>

Hi there,

I’m currently implementing a new compiler support, which is doing cross compilation. I run into problems with the compiler checks. The arguments needed for the compiler checks are not always needed for the actual compilation of the project. Is there a possibility to work around that? For example: For the CXX ABI Check a certain library needs to be linked.

BR,  
Chris

---

<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: [July 19, 2022, 3:23pm UTC](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096/2 "2022-07-19T15:23:56Z")

</div>

Take a look at CMAKE\_TRY\_COMPILE\_TARGET\_TYPE and setting it to STATIC\_LIBRARY.

---

<div class="post-metadata">

### Author: ![go2sh](https://discourse.cmake.org/user_avatar/discourse.cmake.org/go2sh/32/2606_2.png) [@go2sh](https://discourse.cmake.org/u/go2sh)
#### Post date: [July 21, 2022, 12:07pm UTC](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096/3 "2022-07-21T12:07:09Z")

</div>

Thanks, that helped.
