View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012931 | CMake | CMake | public | 2012-02-03 10:26 | 2016-06-10 14:31 | ||||
Reporter | Thierry | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | MSVC 2010 express | OS | Windows 7 | OS Version | enterprise 64bit | ||||
Product Version | CMake 2.8.7 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012931: MSVC 2010 project generation filters out known compile flags | ||||||||
Description | I'm trying to have a library with only one file compiled with clr support. The Makefile generator adds my flags correctly. But the visual studio 10 generator filters out the known flags (/clr /FU...) | ||||||||
Steps To Reproduce | get my 2 files, cmake -G "Visual Studio 10" you can edit the vcxproj and see that some flags are filtered cmake -G "NMake Makefiles" that works fine. | ||||||||
Additional Information | My colleague still uses MSVC2008 and that generator seems to work. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | temp.zip [^] (1,037 bytes) 2012-02-03 10:26 | ||||||||
Relationships | |
Relationships |
Notes | |
(0028460) Thierry (reporter) 2012-02-03 10:45 |
It seems it works as expected if I remove the space between the option and the argument. For instance /FUSystem.dll instead of /FU system.dll |
(0028462) Brad King (manager) 2012-02-03 10:54 |
CMake has a table of known mappings from flags to IDE project options. In the case of VS 10 we computed the table from the MSBuild files that map the other direction: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmVS10CLFlagTable.h;hb=v2.8.7 [^] The generator parses the specified flags: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmVisualStudioGeneratorOptions.cxx;hb=v2.8.7#l122 [^] and handles each flag by mapping it through the table: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmIDEOptions.cxx;hb=v2.8.7#l34 [^] The resulting project file should have the corresponding options set. Perhaps the mapping has not been written to handle the options that have values as separate arguments. As you discovered you can work around the problem for now by not separating them. |
(0030357) David Cole (manager) 2012-08-11 21:09 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0041976) 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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-02-03 10:26 | Thierry | New Issue | |
2012-02-03 10:26 | Thierry | File Added: temp.zip | |
2012-02-03 10:45 | Thierry | Note Added: 0028460 | |
2012-02-03 10:54 | Brad King | Note Added: 0028462 | |
2012-08-11 21:09 | David Cole | Status | new => backlog |
2012-08-11 21:09 | David Cole | Note Added: 0030357 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041976 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |