[cmake-developers] [CMake 0014153]: Visual Studio project wrong AssemblerListingLocation (/Fa) default (and override!)
Mantis Bug Tracker
mantis at public.kitware.com
Fri May 17 02:07:17 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14153
======================================================================
Reported By: fbaccount88
Assigned To:
======================================================================
Project: CMake
Issue ID: 14153
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-05-17 02:07 EDT
Last Modified: 2013-05-17 02:07 EDT
======================================================================
Summary: Visual Studio project wrong AssemblerListingLocation
(/Fa) default (and override!)
Description:
Using the Visual Studio 11 (Win64) generator, I get .vcxproj with the option
<AssemblerListingLocation> set to CMAKE_BUILD_TYPE (Debug, Release, etc...),
i.e:
<AssemblerListingLocation>Debug<AssemblerListingLocation>
If I explicitly set this option (e.g. /Fa$(IntDir) or /FaDebug\), the project
file will contain two AssemblerListingLocation definitions per build type, the
last one taking precedence over the first one. The last one is the CMake's
default.
It is indeed a problem not to let me set my own variable, but the main problem
is that the default is wrong. Setting it to CMAKE_BUILD_TYPE will generate build
errors when specifying the Generate Assembly options (/FA family) since Visual
Studio will consider CMAKE_BUILD_TYPE a file name instead of a directory name
(i.e. Debug instead of Debug\) and so fail to compile multiple files (error
D8036: '/FaDebug' not allowed with multiple source files).
Steps to Reproduce:
Generate a simple Visual Studio project with more than one file to build (.cpp).
Set VS to generate assembly files (e.g. /FA).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-05-17 02:07 fbaccount88 New Issue
2013-05-17 02:07 fbaccount88 File Added: CMake_error.zip
======================================================================
More information about the cmake-developers
mailing list