View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0014910 | CMake | CMake | public | 2014-05-07 05:03 | 2016-06-10 14:31 |
|
Reporter | shricco | |
Assigned To | Kitware Robot | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | X64 | OS | Windows | OS Version | 7 |
Product Version | CMake 2.8.12.2 | |
Target Version | | Fixed in Version | | |
|
Summary | 0014910: CMake ignores CMAKE_TOOLCHAIN_FILE even without existing cache file |
Description | I currently need cmake for cross compiling purposes. I have to support several Toolchains so I created several Toolchain files to use later in command line with the -DCMAKE_TOOLCHAIN_FILE flag. The flag is always ignored when using cmake.exe. Even if there is no cache file there. I also tried it on os x and it works fine there (same version). So it must be a windows related bug. I doubted myself at some point and decided then to try it with an older release of cmake. With version 2.8.4 everything works as expected. I also tried the cmake-gui (2.8.12.2). If choose a Toolchainfile there it is used as expected, but set compiler flags within the CMakeList.txt are ignored. Besides that, I don't want to use the gui due to automation purposes. |
Steps To Reproduce | Extract the binary from tar.gz for windows on 64Bit System. run cmake.exe -DCMAKE_TOOLCHAIN_FILE=foo.cmake .\ and it always uses the default compiler. I am not even getting an error for not finding the given toolchain file.
Also try it with cmake.exe -DCMAKE_TOOLCHAIN_FILE=existingFile.cmake .\ same here. This time with existing file. |
Additional Information | I have Visual Studio 2010 Express installed and Windows SDK 7.1 for 64Bit compilation.
Target System are embedded systems so the CMAKE_SYSTEM_NAME is Generic |
Tags | No tags attached. |
|
Attached Files | |
|