MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014897 | CMake | CMake | public | 2014-04-24 12:04 | 2014-10-06 10:33 | |||||
Reporter | jwo | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | not fixable | |||||||
Platform | Visual Studio 2012 | OS | Windows 7 64 Bit | OS Version | 7 | |||||
Product Version | CMake 2.8.12.2 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0014897: Wrong reference of ZERO_CHECK.vcxproj if project is included with INCLUDE_EXTERNAL_MSPROJECT(...) | |||||||||
Description | When including a project into another project with INCLUDE_EXTERNAL_MSPROJECT(...), the resulting solution cannot be built due to a reference to a non-existing project. Error-Message: "The project file ' ' has been renamed or is no longer part of the solution" This only happens if the two projects (the included and the including) have been configured via CMake. It does occur if using the generator for Visual Studio 2012, but not when generating for Visual Studio 2008. The reason for the problem is the following. Both project in the solution (the included and the including) refer to the project ZERO_CHECK (You can right-click the project, go to properties, then to Framework and References to see it). Unformtunately, the project IDs (called Identity in this view) ZERO_CHECK of differ between these two project. Project2 refers to the existing ZERO_CHECK, but Project1 refers to a non-existing. | |||||||||
Steps To Reproduce | 1. Unzip the appended archive ReproduceBug.zip 2. call cmake_all_projects.bat to cmake the two projects 3. Open the second soultion (Sln2/project2.sln) 4. Build the solution --> Error: "The project file ' ' has been renamed or is no longer part of the solution" 5. Right-click project1 and project2, go to properties, then to Framework and References and find the different references to ZERO_CHECK. | |||||||||
Additional Information | This bug is related but not a duplicate of bug 0014378 (http://www.cmake.org/Bug/view.php?id=0014378 [^]) Anyway, setting CMAKE_SUPPRESS_REGENERATION to TRUE suppresses the error by deactivating its cause. But for many users may not be a good workarround as the automatic regerneration of the projects is blocked. Due to several reasons it is not possible to include the two projects in the same CMakeLists.txt or configure them in one call of CMake. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ReproduceBug.zip (1,305) 2014-04-24 12:04 https://public.kitware.com/Bug/file/5137/ReproduceBug.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-04-24 12:04 | jwo | New Issue | ||||||||
2014-04-24 12:04 | jwo | File Added: ReproduceBug.zip | ||||||||
2014-04-24 12:06 | jwo | Note Added: 0035772 | ||||||||
2014-04-24 13:26 | Brad King | Relationship added | related to 0014378 | |||||||
2014-04-24 13:29 | Brad King | Note Added: 0035773 | ||||||||
2014-04-24 13:29 | Brad King | Status | new => resolved | |||||||
2014-04-24 13:29 | Brad King | Resolution | open => not fixable | |||||||
2014-10-06 10:33 | Robert Maynard | Note Added: 0036984 | ||||||||
2014-10-06 10:33 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|