MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013076 | CMake | CMake | public | 2012-03-29 17:38 | 2016-06-10 14:31 | |||||
Reporter | Stephen Schiffli | |||||||||
Assigned To | Bill Hoffman | |||||||||
Priority | normal | 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 | 0013076: Slashes are removed from include path when using visual studio 2010 generator | |||||||||
Description | I 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 | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | The 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. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
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 |
Notes | |||||
|
|||||
|
|