View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013075CMakeCMakepublic2012-03-29 17:262016-06-10 14:31
ReporterStephen Schiffli 
Assigned ToBill Hoffman 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows 7OS Version
Product VersionCMake 2.8.7 
Target VersionFixed in Version 
Summary0013075: AddCustomCommandToCreateObject receives linker language instead of source language
DescriptionHi, 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.
Additional InformationI'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.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0002086closedBill Hoffman Visual stuido sends c++ flags to c code 
related to 0013076closedBill Hoffman Slashes are removed from include path when using visual studio 2010 generator 

  Notes
(0042014)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team