[cmake-developers] [CMake 0012552]: CMake ignores toolchain file

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 2 10:06:44 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12552 
====================================================================== 
Reported By:                bert
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12552
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-02 10:06 EDT
Last Modified:              2011-11-02 10:06 EDT
====================================================================== 
Summary:                    CMake ignores toolchain file
Description: 
CMake seems to ignore a (possibly faulty) toolchain file. Regardless whether I
use the CMAKE_TOOLCHAIN_FILE option or not, the exact same Makefile is
generated. Furthermore, CMake doesn't even throw errors on faulty or
non-exisiting toolchain files. I'm not sure whether this is intended behavior,
though.

Steps to Reproduce: 
$ cmake .
-- Entering Project Cmake File...
-- Configuring the ... Library...
-- Configuring for Standard-Linux...
-- Configuring done
-- Generating done
-- Build files have been written to: ...
$ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-that-should-work.cmake .
-- Entering Project Cmake File...
-- Configuring the ... Library...
-- Configuring for Standard-Linux...
-- Configuring done
-- Generating done
-- Build files have been written to: ...
$ echo fubar > dummy-toolchain.cmake
$ cmake -DCMAKE_TOOLCHAIN_FILE=dummy-toolchain.cmake .
-- Entering Project Cmake File...
-- Configuring the ... Library...
-- Configuring for Standard-Linux...
-- Configuring done
-- Generating done
-- Build files have been written to: ...
$ cmake -DCMAKE_TOOLCHAIN_FILE=nonexisting-file.cmake .
-- Entering Project Cmake File...
-- Configuring the ... Library...
-- Configuring for Standard-Linux...
-- Configuring done
-- Generating done
-- Build files have been written to: ...

A diff on all the generated Makefiles shows no differences.

Additional Information: 
$ uname -a
Linux PC 2.6.35-30-generic http://public.kitware.com/Bug/view.php?id=61-Ubuntu
SMP Tue Oct 11 17:52:57 UTC 2011 x86_64 GNU/Linux
$ cmake --version
cmake version 2.8.2
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-02 10:06 bert           New Issue                                    
======================================================================




More information about the cmake-developers mailing list