<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><i><span style='color:#1F497D'>Ok I spent the last hour trying to put together a reproducible example and found that I had way overstated things. I’m trying to <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>Use cmake with the Texas Instruments Arm Compiler (Code Composer 5.5). I’m using windows 7 x64.  I’m putting together a custom compiler support package.  I know that there is  support for a “TI” compiler<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>In cmake but I could not get it to work because the compiler id test always craps out. <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'><o:p> </o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'><o:p> </o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>Below is my custom tool chain file. <o:p></o:p></span></i></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>include("CMakeForceCompiler")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>set(CMAKE_SYSTEM_NAME "Generic")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>#set(CMAKE_SYSTEM_VERSION "1.0")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>#set(CMAKE_SYSTEM_PROCESSOR "C6000")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>set(CMAKE_FIND_ROOT_PATH  "C:/ti/ccsv5/tools/compiler/arm_5.1.1" )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>CMAKE_FORCE_C_COMPILER("armcl" "TI")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>CMAKE_FORCE_CXX_COMPILER("armcl" "TI")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>message( STATUS, "hello from toolchain ${CMAKE_C_COMPILER_ID}")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM    NEVER)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE    BOTH)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY    ONLY)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='color:#1F497D'>When I run this under 3.0 using the command line<o:p></o:p></span></i></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>cmake   -G "MinGW Makefiles"  -DCMAKE_MODULE_PATH="../my_modules" -DCMAKE_TOOLCHAIN_FILE="../my_toolchain.cmake" ../src<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='color:#1F497D'>I get the following error output<o:p></o:p></span></i></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>  The CMAKE_C_COMPILER:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>    armcl<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>  is not a full path and was not found in the PATH.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>  Tell CMake where to find the compiler by setting either the environment<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'>  the compiler, or to the compiler name if it is in the PATH.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='color:#1F497D'>Under 2.8.4 this same toolchain file works fine. I’ve attached a zip file with the example. There is a build directory with 3.0 output (bld3_0) and and 2.8 output (bld2_8). They <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>Have text files of captured stdout and stderr for each run. I have my own version of “TI-CXX.cmake” which I have put in  a custom modules subdirectory. I tried to reproduce this problem<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>With MinGW but could not. I copied the “GNU-C.cmake” compiler setup script into my Compiler directory had a CMAKE_FORCE_COMPILER(c++ “GNU”) in my toolchain file. Everything worked just find under 3.0. I suspect that cmake has a lot of logic for auto-finding the mingw compiler. <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'><o:p> </o:p></span></i></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>Matt Dawson<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Nils Gladitz [<a href="mailto:nilsgladitz@gmail.com">mailto:nilsgladitz@gmail.com</a>] <br><b>Sent:</b> Friday, August 08, 2014 9:06 AM<br><b>To:</b> Dawson, Matt; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br><b>Subject:</b> Re: [CMake] cmake 3.0 not working on windows (mantis #14910)<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 08.08.2014 15:11, Dawson, Matt wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>I had a lot of difficulty getting cmake 3.0 to work under windows. I noticed that there is a bug (mantis #14910) which describes the problem. I had to fall back to 12.8.4 to get things to work.  This was reported back in may. Will this be fixed anytime soon. Its kind of a show stopper bug and will probably drive away first time windows users  like me.<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>Can you elaborate what exactly isn't working and which generator you are trying to use?<br>"0014910: CMake ignores CMAKE_TOOLCHAIN_FILE even without existing cache file" doesn't seem to have been confirmed and there seems to be missing feedback (see the note under it).<br>If one of the visual studio generators has been used this would be expected behavior (in both 2.8.x and 3.0).<br><br>For the issue to be analyzed or even fixed it has to be reproduced first.<br><br>Nils<o:p></o:p></span></p></div></body></html>