MantisBT - CMake
View Issue Details
0013927CMakeCMakepublic2013-02-15 19:152013-07-01 09:37
Christopher Mullins 
Brad King 
normalminoralways
closedduplicate 
Apple MacOS X10.4.10
CMake 2.8.9 
 
0013927: CMake loops indefinitely when compiler is changed
Output of sample project loops:

-- Foo
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /usr/bin/gcc
CMAKE_CXX_COMPILER= /usr/bin/g++
Test CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.9)
project(Foo)
message(STATUS "Foo")

mkdir build && cd build/

cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc ../

No tags attached.
duplicate of 0013756closed Brad King Infinite loop when reconfiguring with different CMAKE_C_COMPILER 
Issue History
2013-02-15 19:15Christopher MullinsNew Issue
2013-02-15 19:51Jean-Christophe Fillion-RobinNote Added: 0032303
2013-02-17 09:24Brad KingRelationship addedduplicate of 0013756
2013-02-17 09:24Brad KingStatusnew => resolved
2013-02-17 09:24Brad KingResolutionopen => duplicate
2013-02-17 09:24Brad KingAssigned To => Brad King
2013-07-01 09:37Robert MaynardNote Added: 0033425
2013-07-01 09:37Robert MaynardStatusresolved => closed

Notes
(0032303)
Jean-Christophe Fillion-Robin   
2013-02-15 19:51   
To reproduce:

1) mkdir Foo
2) Add file Foo/CMakeLists.txt
3) mkdir Foo/build
4) cd Foo/build
5) cmake ../
6) cmake -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ ../

After the first compilation, the param CMAKE_C_COMPILER and CMAKE_CXX_COMPILER where pointing to /usr/bin/cc and /usr/bin/c++
(0033425)
Robert Maynard   
2013-07-01 09:37   
Closing resolved issues that have not been updated in more than 4 months.