MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014667 | CMake | (No Category) | public | 2013-12-23 08:07 | 2014-10-06 10:33 |
|
Reporter | njeisecke | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | Windows | OS | Windows | OS Version | 7 |
Product Version | CMake 2.8.12 | |
Target Version | CMake 2.8.12.2 | Fixed in Version | CMake 2.8.12.2 | |
|
Summary | 0014667: MSVC compiler PDB change breaks PCH support (with minimal testcase) |
Description | The change http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=42ba1b08 [^] added a compiler switch "/Fd<OBJECT_DIR>".
When using precompiled headers this will now cause errors like:
C:\projects\cmakepch\subdir\test2.cpp(1) : error C2859: c:\projects\cmakepch\build\cmakefiles\test.dir\subdir\vc90.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
This occurs for all source files not on the same level as the compiled header object file because msvc is now told to use the pdb in the object directory.
Explicitly setting /Fd does not help because that's overridden by cmake. |
Steps To Reproduce | please check the attached minimal testcase.
|
Additional Information | works in 2.8.10.2 but not in 2.8.12. |
Tags | No tags attached. |
Relationships | related to | 0014876 | closed | Kitware Robot | Improve support for TI compiler |
|
Attached Files | cmakepch.zip (4,593) 2013-12-23 08:07 https://public.kitware.com/Bug/file/5026/cmakepch.zip |
|
Issue History |
Date Modified | Username | Field | Change |
2013-12-23 08:07 | njeisecke | New Issue | |
2013-12-23 08:07 | njeisecke | File Added: cmakepch.zip | |
2013-12-23 10:04 | Brad King | Note Added: 0034856 | |
2013-12-23 10:04 | Brad King | Assigned To | => Brad King |
2013-12-23 10:04 | Brad King | Status | new => resolved |
2013-12-23 10:04 | Brad King | Resolution | open => fixed |
2013-12-23 10:04 | Brad King | Fixed in Version | => CMake 2.8.12.2 |
2013-12-23 10:04 | Brad King | Target Version | => CMake 2.8.12.2 |
2013-12-23 10:05 | Brad King | Note Edited: 0034856 | bug_revision_view_page.php?bugnote_id=34856#r1347 |
2014-01-02 13:49 | Brad King | Note Edited: 0034856 | bug_revision_view_page.php?bugnote_id=34856#r1356 |
2014-04-15 08:45 | Brad King | Relationship added | related to 0014876 |
2014-10-06 10:33 | Robert Maynard | Note Added: 0036973 | |
2014-10-06 10:33 | Robert Maynard | Status | resolved => closed |