MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015557 | CMake | CTest | public | 2015-05-06 12:57 | 2016-06-10 14:31 |
| Reporter | trsystran | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 3.2.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015557: CTest misses build errors if launchers enabled in CTest but not in CMake | ||||
| Description | When using CTest with launchers ("ctest -S script" with script setting CTEST_USE_LAUNCHERS=ON), CTest expects xml files in Testing/*/Build/. If it finds none, then no error/warning is reported. Thus, if there is a misconfiguration where CMake is *not* configured with launchers, then build errors are lost. This happened to me because ctest_configure(OPTIONS "-DCTEST_USE_LAUNCHERS=${CTEST_USE_LAUNCHERS}") is silently overwritten by set(CTEST_CONFIGURE_COMMAND "...") I report this issue first to have a public trace of this, to help others that could run into this bug (it took me quite some time to understand the misconfiguration...) I don't necessarily expect a fix, because it's clearly a misconfiguration. Maybe ctest_configure(OPTIONS) should not be silently ignored: either append options to CTEST_CONFIGURE_COMMAND (but this could break misconfigured ctest scripts that otherwise globally work); or log a warning explaining that the OPTIONS is set but will be ignored (this is probably the best solution). | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-05-06 12:57 | trsystran | New Issue | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042773 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||