<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 3:55 PM, Adam <span dir="ltr"><<a href="mailto:adam707blue@gmail.com" target="_blank">adam707blue@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think the "CMAKE_COMPILER" variable you're referring to is just a custom variable passed to your external project, which it uses to build the standard variables "CMAKE_C_COMPILER" & "CMAKE_CXX_COMPILER". This is why your not finding anything.<br>
</div><div><br></div><div>Have a look at these pages</div><div><a href="http://www.cmake.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain" target="_blank">http://www.cmake.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain</a></div>
<div><a href="http://www.cmake.org/Wiki/CMake_Useful_Variables" target="_blank">http://www.cmake.org/Wiki/CMake_Useful_Variables</a><br></div><div><br></div></div></blockquote><div style><br></div><div style>The variable in question doesn't appear on either of those pages. It would be surprising (or worse) if either of those pages had variables that the two pages I linked did not have. CMAKE_COMPILER also doesn't appear in /usr/local/share/cmake2.8, the location here of the supporting scripts such as CheckIncludeFile.cmake. It also does not appear in the library's CMakeLists.txt or its own supporting CMake scripts. So it looks like a local typo together with some unexplained mechanism that gets CMAKE_C_COMPILER to be set for this library after enough build attempts. Changing the External_Project_Add to use CMAKE_C_COMPILER where CMAKE_COMPILER had been used has been successful in one build out of one build attempts.</div>
<div style><br></div><div style> </div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote"><div><div class="h5">On Sat, Jun 7, 2014 at 6:30 AM, Michael Enright <span dir="ltr"><<a href="mailto:michael.enright@gmail.com" target="_blank">michael.enright@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I've got an External_Project_Add in my superbuild that adds a CMake-built library to the build. It attempts to use the CMAKE_COMPILER variable in order to define CMAKE_C_COMPILER for this library's build. <div>
<br></div><div>This external project's build is flakey. I intend to diagnose this myself so I don't plan to supply a reduction or anything like that, I'm just trying to gather information.</div><div><br>
</div><div>To that end, I need an authoritative definition of CMAKE_COMPILER, i.e. I have been searching for a web page where CMAKE_COMPILER is described. Apart from googling I have also just manually reviewed</div>
<div><a href="http://www.cmake.org/cmake/help/cmake2.6docs.html" target="_blank">http://www.cmake.org/cmake/help/cmake2.6docs.html</a><br></div><div>and</div><div><a href="http://www.cmake.org/cmake/help/v2.8.12/cmake.html" target="_blank">http://www.cmake.org/cmake/help/v2.8.12/cmake.html</a><br>
</div><div><br></div><div><br></div><div>Neither of those contain the string "CMAKE_COMPILER" except as substrings of other names such as CMAKE_COMPILER_2005.</div><div><br></div><div>
Can anyone provide a link or say anything about this variable?</div><div><br></div></div></div></div></blockquote></div></div>
</blockquote></div><br></div></div>