View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015405 | CMake | CMake | public | 2015-02-13 10:49 | 2016-06-10 14:31 | ||||
Reporter | CrumblingStatue | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | x86_64 | OS | Linux | OS Version | |||||
Product Version | CMake 3.1.3 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015405: Undefined behavior when introducing CMAKE_EXTRA_GENERATOR over a plain generator | ||||||||
Description | If I generate a CodeBlocks build over a plain one, the generated .cbp file is missing entries that are present when generating a CodeBlocks build in a clean directory. The question is, is it valid to introduce extra generators over a plain one, and this is a bug with the CodeBlocks generator, or is it invalid, in which case it should fail with a descriptive error message instead of silently generating incorrect results. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
Relationships |
Notes | |
(0037971) David Cole (manager) 2015-02-13 13:08 |
It's certainly unexpected, isn't it? If you change generators, the expectation is that you will start with a clean build tree... |
(0037972) Nils Gladitz (developer) 2015-02-13 13:27 |
CMake fails if CMAKE_GENERATOR changes but currently allows CMAKE_EXTRA_GENERATOR to change. The questions is if this is an oversight or if it is intentional / by design. |
(0037973) Alex Neundorf (developer) 2015-02-13 16:32 |
It's an oversight. |
(0037974) Alex Neundorf (developer) 2015-02-13 16:33 |
OTOH I'm not quite sure what should go wrong. So after generating a project you added -DCMAKE_EXTRA_GENERATOR=CodeBlocks, and then got a cbp file where some things were missing ? I never tried that. |
(0037977) CrumblingStatue (reporter) 2015-02-14 04:10 |
Actually, -DCMAKE_EXTRA_GENERATOR=CodeBlocks over a plain build works correctly. The way I did instead is to generate -G 'CodeBlocks - Unix Makefiles` over a plain `Unix Makefiles` build. I attached a diff that shows the missing includes in that case. |
(0042715) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-02-13 10:49 | CrumblingStatue | New Issue | |
2015-02-13 13:08 | David Cole | Note Added: 0037971 | |
2015-02-13 13:27 | Nils Gladitz | Note Added: 0037972 | |
2015-02-13 16:32 | Alex Neundorf | Note Added: 0037973 | |
2015-02-13 16:33 | Alex Neundorf | Note Added: 0037974 | |
2015-02-14 04:08 | CrumblingStatue | File Added: cbp.diff | |
2015-02-14 04:10 | CrumblingStatue | Note Added: 0037977 | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042715 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |