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                                   

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

--

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

Reply via email to