#1648 [CMake] Dont build modules when CMAKE_DISABLE_FIND_PACKAGE_<mod> is set.
Metadata
Property | Value |
---|---|
Reported by | Dominic Kempf (dominic.r.kempf@gmail.com) |
Reported at | May 11, 2015 16:14 |
Type | Feature Request |
Version | 2.3 |
Operating System | Unspecified / All |
Last edited by | Dominic Kempf (dominic.r.kempf@gmail.com) |
Last edited at | Jun 17, 2015 09:07 |
Closed by | Dominic Kempf (dominic.r.kempf@gmail.com) |
Closed at | Jun 17, 2015 09:07 |
Closed in version | Unknown |
Resolution | Implemented |
Comment |
Description
CMakes mechanism of suppressing the detection of an external package does work for dune modules too. I find it quite handy to write the following line into my opts file:
CMAKE_FLAGS += '-DCMAKE_DISABLE_FIND_PACKAGE_dune-alugrid=1'
This results in dune-pdelab not looking for dune-alugrid (which is only suggested, not required) and could speed up my builds greatly, if not...
However, the module dune-alugrid itself is still build. I would like to add a check to the build system that checks whether the given module itself has been disabled and skip the building process in that case. I do not know yet, where such option would ideally be hooked in.