# Not all modules are enabled after build

**URL:** <https://discourse.slicer.org/t/not-all-modules-are-enabled-after-build/9644>\
**Category:** Development\
**Created:** [December 29, 2019, 3:23pm UTC](https://discourse.slicer.org/t/not-all-modules-are-enabled-after-build/9644 "2019-12-29T15:23:26Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![harajyoti\_das](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/harajyoti_das/32/5529_2.png) [@harajyoti\_das](https://discourse.slicer.org/u/harajyoti_das)\
**Post date:** [January 2, 2020, 5:37am UTC](https://discourse.slicer.org/t/not-all-modules-are-enabled-after-build/9644/21 "2020-01-02T05:37:18Z")

</div>

I enabled the /MP flag in CMake and set the num\_processors to 1.  
default the flag is unchecked and num of processors for my machine was 8(= no of cores)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/1/01136b2d212c464387dd25835ec69deccb0c3d66.png)

I set the number of parallel projects build to 1 (default is 8 for my machine as I have 8 core) This is under Tools-\> option

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/c/bc36c0c5cd802e91a2dec057876b9bfabb3a5c35.png)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 9, 2020, 7:43am UTC](https://discourse.slicer.org/t/not-all-modules-are-enabled-after-build/9644/22 "2020-01-09T07:43:16Z")

</div>

For reference, @lassoan committed a fix that creates the missing directory just before using it, so parallel build should work now as well.

> [@Build error on Windows related to CLI build directory](https://discourse.slicer.org/t/build-error-on-windows-related-to-cli-build-directory/9738/7):
>
> Submitted a fix for this build error: [https://github.com/Slicer/Slicer/commit/f59653b8b7aa527ceeaacfa3296b009064619bf7](https://github.com/Slicer/Slicer/commit/f59653b8b7aa527ceeaacfa3296b009064619bf7) It would be still nice to find out why CMake behavior is changed but right now I cannot spend more time with this investigation.

[Previous page](https://discourse.slicer.org/t/not-all-modules-are-enabled-after-build/9644.md?page=1)
