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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers