[cmake-developers] [CMake 0013863]: CMAKE_FORCE_C_COMPILER doesn't work...

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 21 17:18:30 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13863 
====================================================================== 
Reported By:                Jonathan De Wachter
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13863
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2013-01-21 17:18 EST
Last Modified:              2013-01-21 17:18 EST
====================================================================== 
Summary:                    CMAKE_FORCE_C_COMPILER doesn't work...
Description: 
CMAKE_FORCE_C_COMPILER doesn't work while the traditional version
CMAKE_C_COMPILER does.

Here is my code:
include(CMakeForceCompiler)

SET(CMAKE_SYSTEM_NAME Android)

set(NDK_PATH
"C:/Users/Sonkun/Desktop/my-android-toolchain/arm-linux-androideabi")

# I get my compilers found when using the following. The only problem: it
doesn't compile, without extra flags, a simple program so I need to force.
SET(CMAKE_C_COMPILER gcc) 
SET(CMAKE_CXX_COMPILER g++)

# So I comment the two line above and try the following. It results two errors
saying CMake was unable to find the compilers...
CMAKE_FORCE_C_COMPILER(gcc GNU)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-01-21 17:18 Jonathan De WachterNew Issue                                   

======================================================================




More information about the cmake-developers mailing list