MantisBT - CMake | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0014378 | CMake | CMake | public | 2013-08-27 10:58 | 2014-04-24 13:26 | ||||||||||
Reporter | Mateusz Loskot | ||||||||||||||
Assigned To | Brad King | ||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||
Status | closed | Resolution | fixed | ||||||||||||
Platform | Windows 64-bit | OS | Microsoft Windows 7 Professional | OS Version | 6.1 | ||||||||||
Product Version | CMake 2.8.11.2 | ||||||||||||||
Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | ||||||||||||
Summary | 0014378: ZERO_CHECK.vcxproj referenced despite CMAKE_SUPPRESS_REGENERATION set to FALSE | ||||||||||||||
Description | I have a collection of predefined .vcxproj files and I use CMake to generate .sln file gathering all the projects. In my CMakeLists.txt I set CMAKE_SUPPRESS_REGENERATION to FALSE to prevent generating of ZERO_CHECK.vcxproj, but GUID of the ZERO_CHECK is still referenced. It is, the generated .sln file still gets this postProject section generated Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cmake_test", "cmake_test.vcxproj", "{A4C50E61-87B4-44A9-975E-CDC1649CB0DC}" ProjectSection(ProjectDependencies) = postProject {AB7E8FC6-757B-400A-AC2A-E4192A4C124E} = {AB7E8FC6-757B-400A-AC2A-E4192A4C124E} EndProjectSection EndProject where cmake_test is predefiend (not generated) project and AB7E8FC6-757B-400A-AC2A-E4192A4C124E is GUID of non-existent ZERO_CHECK project. | ||||||||||||||
Steps To Reproduce | 1. Create "Win32 Console Application" using VS IDE (name used below: cmake_test) 2. Create CMakeLists.txt file: cmake_minimum_required(VERSION 2.8) project(cmake_test_gen NONE) set(CMAKE_SUPPRESS_REGENERATION TRUE) include_external_msproject(cmake_test cmake_test.vcxproj) 3. Try to build using the generated .sln file: > msbuild cmake_test_gen.sln Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.18052] Copyright (C) Microsoft Corporation. All rights reserved. Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. Build started 27/08/2013 15:46:41. D:\tmp\cmake_test\cmake_test_gen.sln : Solution file error MSB4051: Project {A4C50E61-87B4-44A9-975E-CDC1649CB0DC} is referencing a project with GUID {AB7E8FC6-757B-400A-AC2A-E4192A4C124E}, but a project with this GUID was not found in the .SLN file. Build FAILED. D:\tmp\cmake_test\cmake_test_gen.sln : Solution file error MSB4051: Project {A4C50E61-87B4-44A9-975E-CDC1649CB0DC} is referenci ng a project with GUID {AB7E8FC6-757B-400A-AC2A-E4192A4C124E}, but a project with this GUID was not found in the .SLN file. 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.02 D:\tmp\cmake_test> 4. Remove set(CMAKE_SUPPRESS_REGENERATION TRUE) from CMakeLists.txt 5. Re-generate the .sln file and re-build cmake . msbuild cmake_test_gen.sln Observe the build in step 5 succeeds. | ||||||||||||||
Additional Information | I use Visual Studio 2012. | ||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | v2.8.11.2+0001-VS-Fix-CMAKE_SUPPRESS_REGENERATION-bad-ZERO_CHECK-de.patch (3,166) 2013-08-27 14:21 https://public.kitware.com/Bug/file/4860/v2.8.11.2%2B0001-VS-Fix-CMAKE_SUPPRESS_REGENERATION-bad-ZERO_CHECK-de.patch cmake_test_patched.log (2,884) 2013-08-28 04:33 https://public.kitware.com/Bug/file/4861/cmake_test_patched.log | ||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2013-08-27 10:58 | Mateusz Loskot | New Issue | |||||||||||||
2013-08-27 14:21 | Brad King | File Added: v2.8.11.2+0001-VS-Fix-CMAKE_SUPPRESS_REGENERATION-bad-ZERO_CHECK-de.patch | |||||||||||||
2013-08-27 14:22 | Brad King | Note Added: 0033750 | |||||||||||||
2013-08-27 14:22 | Brad King | Assigned To | => Brad King | ||||||||||||
2013-08-27 14:22 | Brad King | Status | new => assigned | ||||||||||||
2013-08-27 14:22 | Brad King | Target Version | => CMake 3.0 | ||||||||||||
2013-08-28 04:33 | Mateusz Loskot | File Added: cmake_test_patched.log | |||||||||||||
2013-08-28 04:41 | Mateusz Loskot | Note Added: 0033753 | |||||||||||||
2013-08-28 04:42 | Mateusz Loskot | Note Edited: 0033753 | bug_revision_view_page.php?bugnote_id=33753#r1247 | ||||||||||||
2013-08-28 09:01 | Brad King | Note Added: 0033754 | |||||||||||||
2013-08-28 09:01 | Brad King | Status | assigned => resolved | ||||||||||||
2013-08-28 09:01 | Brad King | Resolution | open => fixed | ||||||||||||
2013-08-28 09:01 | Brad King | Fixed in Version | => CMake 3.0 | ||||||||||||
2013-10-15 09:05 | Brad King | Relationship added | has duplicate 0014482 | ||||||||||||
2014-03-05 09:58 | Robert Maynard | Note Added: 0035281 | |||||||||||||
2014-03-05 09:58 | Robert Maynard | Status | resolved => closed | ||||||||||||
2014-04-24 13:26 | Brad King | Relationship added | related to 0014897 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|