MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006337 | CMake | CMake | public | 2008-02-13 12:25 | 2008-10-01 17:00 |
| Reporter | Brandon Van Every | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0006337: cmake -P crashes on configure_file | ||||
| Description | It is documented that cmake -P does not have a configuration stage or a cache. However in CMake 2.4.8, if a cmake -P script attempts to execute a configure_file command, the error message says that CMake has not been built correctly. This is worrisome. Run the following script twice with cmake -P to reproduce: set(input ${CMAKE_SOURCE_DIR}/a.txt) if(EXISTS ${input}) set(output ${CMAKE_BINARY_DIR}/b.txt) if(EXISTS ${output}) message("${output} already exists") else(EXISTS ${output}) configure_file(${input} ${output}) endif(EXISTS ${output}) else(EXISTS ${input}) file(WRITE ${input} "This is some text") message("Created ${input}") message("Can't use output of file(WRITE ...) for configure_file") message("Re-run script") endif(EXISTS ${input}) C:\devel\src\cbugs\configure>cmake -P configure_file.cmake Created C:/devel/src/cbugs/configure/a.txt Can't use output of file(WRITE ...) for configure_file Re-run script C:\devel\src\cbugs\configure>cmake -P configure_file.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_BACKWARDS_COMPATIBILITY C:\devel\src\cbugs\configure> | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-02-13 12:25 | Brandon Van Every | New Issue | |||
| 2008-02-13 14:08 | Alex Neundorf | Note Added: 0010482 | |||
| 2008-02-13 17:54 | Brandon Van Every | Note Added: 0010489 | |||
| 2008-02-14 15:50 | Alex Neundorf | Note Added: 0010500 | |||
| 2008-02-15 10:28 | Bill Hoffman | Status | new => assigned | ||
| 2008-02-15 10:28 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2008-10-01 17:00 | Bill Hoffman | Status | assigned => closed | ||
| 2008-10-01 17:00 | Bill Hoffman | Resolution | open => fixed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||