[cmake-developers] [CMake 0011536]: Can't use assembler files with Visual Studio 10 generator
Mantis Bug Tracker
mantis at public.kitware.com
Mon Nov 29 20:33:07 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=11536
======================================================================
Reported By: Nikita Borodikhin
Assigned To:
======================================================================
Project: CMake
Issue ID: 11536
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-11-29 20:33 EST
Last Modified: 2010-11-29 20:33 EST
======================================================================
Summary: Can't use assembler files with Visual Studio 10
generator
Description:
With Visual Studio 2010 generator I can't use assembler files. If I try to use
them as supposed to:
* enable_lanuages(ASM_MASM)
* add_executable(... a.asm)
then generator will add a.asm to a project as custom-command file but without
any command associated with it (see bug#0008170)
If I try to use custom command I used for Visual Studio 8 and 9:
add_cusotom_command(
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/a.cxx
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/a.obj
COMMAND ml /c /coff /Zi
${CMAKE_CURRENT_SOURCE_DIR}/a.cxx
/Fo ${CMAKE_CURRENT_BINARY_DIR}/a.obj
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
then Visual Studio 10 fails to load generated project reporting:
error: The item "a.obj" already exists under the filter ""
The code responsible for placing object files under unnamed filter is
cmVisualStudio10TargetGenerator::WriteObjSources. It doesn't check whether
object files came from a custom command.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-29 20:33 Nikita BorodikhinNew Issue
======================================================================
More information about the cmake-developers
mailing list