View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015405CMakeCMakepublic2015-02-13 10:492016-06-10 14:31
ReporterCrumblingStatue 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platformx86_64OSLinuxOS Version
Product VersionCMake 3.1.3 
Target VersionFixed in Version 
Summary0015405: Undefined behavior when introducing CMAKE_EXTRA_GENERATOR over a plain generator
DescriptionIf 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.
TagsNo tags attached.
Attached Filesdiff file icon cbp.diff [^] (1,911 bytes) 2015-02-14 04:08 [Show Content]

 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.

 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


Copyright © 2000 - 2018 MantisBT Team