MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0007340 | CMake | CMake | public | 2008-07-15 13:18 | 2008-07-16 11:06 |
Reporter | Yuri | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0007340: Can't call TRY_COMPILE before PROJECT directive. | ||||
Description | To tune compiler and linker options I want to use CMAKE_USER_MAKE_RULES_OVERRIDE variable (in addition to ones provided by CMake). To determine whether compiler supports particular flags I use TRY_COMPILE command. This works in cmake-2.4.8 but fails in cmake 2.6.0. See examples attached. | ||||
Steps To Reproduce | |||||
Additional Information | I suppose this is caused by splitting EnableLanguage logic in CMake 2.6. cmGlobalGenerator::EnableLanguage function: In 2.4 after CMake(LANG)Compiler.cmake processed language becomes enabled and LanguageToOutputExtension map filled before processing CMake(LANG)Information.cmake where custom rules are called from. In 2.6 after first stage, SetLanguageEnabledFlag called but LanguageToOutputExtension stays clean while CMake(LANG)Information.cmake is being processed, so nested call to ReadListFile() fails to get language by extension. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/1600/CompilerTest.zip | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-07-15 13:18 | Yuri | New Issue | |||
2008-07-15 13:18 | Yuri | File Added: CompilerTest.zip | |||
2008-07-15 13:36 | Bill Hoffman | Status | new => assigned | ||
2008-07-15 13:36 | Bill Hoffman | Assigned To | => Alex Neundorf | ||
2008-07-16 11:03 | Brad King | Assigned To | Alex Neundorf => Brad King | ||
2008-07-16 11:05 | Brad King | Note Added: 0012722 | |||
2008-07-16 11:06 | Brad King | Status | assigned => closed | ||
2008-07-16 11:06 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|