#1674 cmake parsing of dune.module only partially suppotrs the dune.module format
Metadata
Property | Value |
---|---|
Reported by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Reported at | Jun 28, 2015 20:17 |
Type | Bug Report |
Version | Git (pre2.4) [cmake] |
Operating System | Unspecified / All |
Last edited by | Carsten Gräser (graeser@math.fu-berlin.de) |
Last edited at | Jul 1, 2015 10:56 |
Closed by | Carsten Gräser (graeser@math.fu-berlin.de) |
Closed at | Jul 1, 2015 10:56 |
Closed in version | 2.4 |
Resolution | Fixed |
Comment | Fixed in master cherry-picked to releases/2.4. |
Description
The "pro"-feature of overwriting the dunecontrol commands in the dune.module file is broken when using cmake.
The attached dune.module file fails with a cmake-syntax error:
CMake Error at /home/christi/Uni/Dune/common/cmake/modules/DuneMacros.cmake:217 (string): Syntax error in cmake code at/home/christi/Uni/Dune/common/cmake/modules/DuneMacros.cmake:217
when parsing string
dunecontrol tries load everything, which is not a parameter and interprets it as shell code; see eval_control in dunemodules.lib line 458. This fails horribly with cmake as cmake itself tries to parse the file and fails with the shell code.