# Issues passing -DModule\_\* flags to ccmake.

**URL:** https://discourse.itk.org/t/issues-passing-dmodule-flags-to-ccmake/742
**Category:** Engineering
**Tags:** cmake
**Created:** [March 6, 2018, 11:55pm UTC](https://discourse.itk.org/t/issues-passing-dmodule-flags-to-ccmake/742 "2018-03-06T23:55:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DVigneault](https://discourse.itk.org/user_avatar/discourse.itk.org/dvigneault/32/189_2.png) [@DVigneault](https://discourse.itk.org/u/DVigneault)
#### Post date: [March 6, 2018, 11:55pm UTC](https://discourse.itk.org/t/issues-passing-dmodule-flags-to-ccmake/742/1 "2018-03-06T23:55:54Z")

</div>

All–

My build of ITK requires a number of remote modules to be turned on. In order to document and reproduce my build (for collaborators, as well as for my future self) I’ve been writing bash scripts which pass the relevant flags to `ccmake` during the initial configuration. In doing so, I’ve run into two issues.

1. `Module_SubdivisionQuadEdgeMesh` does not turn on when I pass `-DModule_SubdivisionQuadEdgeMesh=ON` to `ccmake.`
2. `Module_IOSTL` and `Module_DVMeshNoise` turn on (they download and build), but disappear from the configuration so that they cannot be turned off.
3. I can then turn on `Module_SubdivisionQuadEdgeMesh` manually in the curses gui, but it then disappears from the configuration.

I’m not very concerned about points 2 and 3–perhaps this is intended behavior once the modules are downloaded. However, I think that point 1 might be a bug. Has anyone run into this?

Best, and thanks,

–Davis

Steps to reproduce (on Ubuntu 16.04, cmake 3.10.20180117-gb1fd31, on the master branch, starting with a clean build):

```auto
mkdir ITK
cd ITK
git clone https://github.com/InsightSoftwareConsortium/ITK.git src
mkdir bin
cd bin/
ccmake ../src -DModule_SubdivisionQuadEdgeMesh=ON -DModule_IOSTL=ON -DModule_DVMeshNoise=ON

```

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [March 7, 2018, 10:20pm UTC](https://discourse.itk.org/t/issues-passing-dmodule-flags-to-ccmake/742/2 "2018-03-07T22:20:47Z")

</div>

Hi Davis,

If you press the `t` key to show the advanced options in the `ccmake` GUI, do you see the flags?

Best regards,  
Matt

---

<div class="post-metadata">

### Author: ![DVigneault](https://discourse.itk.org/user_avatar/discourse.itk.org/dvigneault/32/189_2.png) [@DVigneault](https://discourse.itk.org/u/DVigneault)
#### Post date: [March 8, 2018, 5:11am UTC](https://discourse.itk.org/t/issues-passing-dmodule-flags-to-ccmake/742/3 "2018-03-08T05:11:40Z")

</div>

Matt–

Showing the advanced options is necessary to see the `Module_*` options, of course, but `Module_DVMeshNoise` is absent. Moreover, `Module_SubdivisionQuadEdgeMesh` is present but `OFF`. I can reproduce this issue on Ubuntu 16.04, and a collaborator has also experienced this issue on OsX.

Best,

–Davis
