[cmake-developers] [CMake 0014910]: CMake ignores CMAKE_TOOLCHAIN_FILE even without existing cache file

Mantis Bug Tracker mantis at public.kitware.com
Wed May 7 05:03:52 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14910 
====================================================================== 
Reported By:                shricco
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14910
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2014-05-07 05:03 EDT
Last Modified:              2014-05-07 05:03 EDT
====================================================================== 
Summary:                    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
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-07 05:03 shricco        New Issue                                    
======================================================================



More information about the cmake-developers mailing list