[cmake-developers] [CMake 0014667]: MSVC compiler PDB change breaks PCH support (with minimal testcase)
Mantis Bug Tracker
mantis at public.kitware.com
Mon Dec 23 08:07:01 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14667
======================================================================
Reported By: njeisecke
Assigned To:
======================================================================
Project: CMake
Issue ID: 14667
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-12-23 08:07 EST
Last Modified: 2013-12-23 08:07 EST
======================================================================
Summary: 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.
======================================================================
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
======================================================================
More information about the cmake-developers
mailing list