# Compile SimpleITK

**URL:** https://discourse.itk.org/t/compile-simpleitk/2709
**Category:** Uncategorized
**Tags:** simpleitk
**Created:** [February 12, 2020, 3:32pm UTC](https://discourse.itk.org/t/compile-simpleitk/2709 "2020-02-12T15:32:08Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [February 12, 2020, 10:20pm UTC](https://discourse.itk.org/t/compile-simpleitk/2709/15 "2020-02-12T22:20:58Z")

</div>

In the SimpleITK Subperbuild all these flags are propagated to the external project:

> <https://github.com/SimpleITK/SimpleITK/blob/master/SuperBuild/SuperBuild.cmake#L205>

So setting `CMAKE_CXX_FLAGS` should work as expected.

---

_[View the full topic](https://discourse.itk.org/t/compile-simpleitk/2709)._
