MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013503 | CMake | CMake | public | 2012-08-31 07:42 | 2015-11-02 09:13 |
| Reporter | Stephen Kelly | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | Windows 7 64 bit | OS Version | ||
| Product Version | CMake 2.8.9 | ||||
| Target Version | Fixed in Version | CMake 3.3 | |||
| Summary | 0013503: CMake fails with Visual Studio generator if CMAKE_TOOLCHAIN_FILE is defined empty | ||||
| Description | With any cmake project with the Visual Studio 10 generator on Windows, a specified but empty CMAKE_TOOLCHAIN_FILE causes problems: c:\QtDev\cmaketest\build>cmake .. -DCMAKE_TOOLCHAIN_FILE= -- Building for: Visual Studio 10 CMake Warning (dev) at build/CMakeFiles/CMakeSystem.cmake:1 (INCLUDE): include() given empty file name (ignored). Call Stack (most recent call first): This warning is for project developers. Use -Wno-dev to suppress it. -- Check for working C compiler using: Visual Studio 10 CMake Warning (dev) at C:/QtDev/cmaketest/build/CMakeFiles/CMakeSystem.cmake:1 ( INCLUDE): include() given empty file name (ignored). Call Stack (most recent call first): CMakeLists.txt:2 (PROJECT) This warning is for project developers. Use -Wno-dev to suppress it. -- Check for working C compiler using: Visual Studio 10 -- works -- Detecting C compiler ABI info CMake Warning (dev) at C:/QtDev/cmaketest/build/CMakeFiles/CMakeSystem.cmake:1 ( INCLUDE): include() given empty file name (ignored). Call Stack (most recent call first): CMakeLists.txt:2 (PROJECT) This warning is for project developers. Use -Wno-dev to suppress it. -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Visual Studio 10 CMake Warning (dev) at C:/QtDev/cmaketest/build/CMakeFiles/CMakeSystem.cmake:1 ( INCLUDE): include() given empty file name (ignored). Call Stack (most recent call first): CMakeLists.txt:2 (PROJECT) This warning is for project developers. Use -Wno-dev to suppress it. The problem seems to be if(DEFINED CMAKE_TOOLCHAIN_FILE) set(INCLUDE_CMAKE_TOOLCHAIN_FILE_IF_REQUIRED "include(\"${CMAKE_TOOLCHAIN_FILE}\")") endif() in CMakeDetermineSystem.cmake. I do not know why it does not hit message(FATAL_ERROR "Could not find toolchain file: ${CMAKE_TOOLCHAIN_FILE}") earlier in that file. I also do not know why this does not fail with the NMake makefile generator, or the Unix Makefile generator. https://bugreports.qt-project.org/browse/QTBUG-27087 [^] | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-08-31 07:42 | Stephen Kelly | New Issue | |||
| 2012-08-31 15:59 | Brad King | Note Added: 0030813 | |||
| 2015-04-24 15:30 | Stephen Kelly | Note Added: 0038594 | |||
| 2015-04-24 15:30 | Stephen Kelly | Status | new => resolved | ||
| 2015-04-24 15:30 | Stephen Kelly | Fixed in Version | => CMake 3.3 | ||
| 2015-04-24 15:30 | Stephen Kelly | Resolution | open => fixed | ||
| 2015-04-24 15:30 | Stephen Kelly | Assigned To | => Brad King | ||
| 2015-11-02 09:13 | Robert Maynard | Note Added: 0039788 | |||
| 2015-11-02 09:13 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||