MantisBT - CMake | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0013075 | CMake | CMake | public | 2012-03-29 17:26 | 2016-06-10 14:31 | ||||||||||
Reporter | Stephen Schiffli | ||||||||||||||
Assigned To | Bill Hoffman | ||||||||||||||
Priority | high | Severity | major | Reproducibility | always | ||||||||||
Status | closed | Resolution | moved | ||||||||||||
Platform | Windows | OS | Windows 7 | OS Version | |||||||||||
Product Version | CMake 2.8.7 | ||||||||||||||
Target Version | Fixed in Version | ||||||||||||||
Summary | 0013075: AddCustomCommandToCreateObject receives linker language instead of source language | ||||||||||||||
Description | Hi, Assume you have 2 languages AA and BB SET(CMAKE_AA_COMPILE_OBJECT "${AA} -o \"<OBJECT>\" \"<SOURCE>\"") SET(CMAKE_AA_LINK_EXECUTABLE "${AA_LINK} \"<OBJECTS>\" -o \"<TARGET>\"") SET(CMAKE_BB_COMPILE_OBJECT "${BB} <FLAGS> -o \"<OBJECT>\" \"<SOURCE>\"") SET(CMAKE_BB_LINK_EXECUTABLE "${BB_LINK} \"<OBJECTS>\" -o \"<TARGET>\"") set_source_files_properties(file.aa PROPERTIES LANGUAGE AA) set_source_files_properties(file.bb PROPERTIES LANGUAGE BB) add_executable(demo file.aa file.bb ) set_target_properties(demo PROPERTIES LINKER_LANGUAGE AA) It will now try to compile file.bb with the AA compiler. | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | I'm generating to Visual Studio 2010 When cmLocalGenerator::AddBuildTargetRule calls this->AddCustomCommandToCreateObject it passes it llang (linker language) for the second parameter. In AddCustomCommandToCreateObject its expecting the lang argument to be the compiler language. | ||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | |||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2012-03-29 17:26 | Stephen Schiffli | New Issue | |||||||||||||
2012-03-30 09:56 | Brad King | Assigned To | => Bill Hoffman | ||||||||||||
2012-03-30 09:56 | Brad King | Status | new => backlog | ||||||||||||
2012-03-30 09:57 | Brad King | Relationship added | related to 0013076 | ||||||||||||
2015-02-26 03:39 | Stephen Kelly | Relationship added | duplicate of 0002086 | ||||||||||||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042014 | |||||||||||||
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||||||||||||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||||||||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|