[cmake-developers] [CMake 0012530]: Problem with ccmake and Toolchain file
Mantis Bug Tracker
mantis at public.kitware.com
Fri Oct 21 07:40:58 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12530
======================================================================
Reported By: tasptz
Assigned To:
======================================================================
Project: CMake
Issue ID: 12530
Category: CCMake
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2011-10-21 07:40 EDT
Last Modified: 2011-10-21 07:40 EDT
======================================================================
Summary: Problem with ccmake and Toolchain file
Description:
Hello,
I want to use a self compiled gcc 4.6 instead of the system's gcc 4.5. Therefore
I wrote a simple toolchain file:
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER "/opt/gcc-4.6.0/bin/gcc-4.6")
set(CMAKE_CXX_COMPILER "/opt/gcc-4.6.0/bin/g++-4.6")
include_directories(BEFORE SYSTEM "/opt/gcc-4.6.0/include")
If I use this with ccmake (empty build directory):
ccmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-gcc46.cmake ../src/
I get:
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-4.5
CMAKE_CXX_COMPILER= /usr/bin/g++-4.5
If I use cmake-gui and specify the toolchain file everything is fine.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-10-21 07:40 tasptz New Issue
======================================================================
More information about the cmake-developers
mailing list