MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014701 | CMake | CMake | public | 2014-01-15 05:17 | 2014-06-02 08:38 |
Reporter | Andreas Pakulat | ||||
Assigned To | |||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.12.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014701: check_include_file never re-runs because it use the variable as cache | ||||
Description | When using check_include_file to verify a certain header can be used, the result of the try_compile is cached by check_include_file using the same variable that is passed in to check_include_file. This means a second run of cmake will not run the try-compile again because the variable is already defined and hence the check at the top of check_include_file goes into the else branch. This breaks the common idiom of running cmake for a project to find out which dependencies might be missing, then installing needed dependencies and simply re-run cmake (without deleting the build directory). In addition this is rather hard to debug for someone that just uses a project and is not overly familiar with CMake. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-01-15 05:17 | Andreas Pakulat | New Issue | |||
2014-01-15 09:48 | Brad King | Note Added: 0034944 | |||
2014-01-15 09:48 | Brad King | Status | new => resolved | ||
2014-01-15 09:48 | Brad King | Resolution | open => won't fix | ||
2014-06-02 08:38 | Robert Maynard | Note Added: 0036080 | |||
2014-06-02 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|