View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013076CMakeCMakepublic2012-03-29 17:382016-06-10 14:31
ReporterStephen Schiffli 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows 7OS Version
Product VersionCMake 2.8.7 
Target VersionFixed in Version 
Summary0013076: Slashes are removed from include path when using visual studio 2010 generator
DescriptionI am using find_program to locate a cross compiler

find_program(AA NAMES aa DOC "my custom compiler")

SET(CMAKE_AA_COMPILE_OBJECT "${AA} <FLAGS> -o \"<OBJECT>\" \"<SOURCE>\"")

set_source_files_properties(file.aa PROPERTIES LANGUAGE AA)

add_executable(demo
    file.aa
    )

The generated command looks something like:
C:\compiler\bin\aa.exe -s -other-flag -IC:contentinclude -o file.o file.aa

It should be:
C:\compiler\bin\aa.exe -s -other-flag -IC:\content\include -o file.o file.aa


Additional InformationThe function cmSystemTools::ParseArguments only check the beginning of the command string to determine if its windows or not. In my case it says its not windows because the path generated by find_program(AA ...) puts in backslashes and its at the front of the command string. But the include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) call puts in forward slashes in the include path, which are later ignored further down in the ParseArguments function.
TagsNo tags attached.
Attached Files

 Relationships
related to 0013075closedBill Hoffman AddCustomCommandToCreateObject receives linker language instead of source language 

  Notes
(0042015)
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:38 Stephen Schiffli New Issue
2012-03-30 09:57 Brad King Assigned To => Bill Hoffman
2012-03-30 09:57 Brad King Status new => backlog
2012-03-30 09:57 Brad King Relationship added related to 0013075
2016-06-10 14:28 Kitware Robot Note Added: 0042015
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