[CMake] CMAKE_COMPILER variable

Adam adam707blue at gmail.com
Fri Jun 6 18:55:27 EDT 2014


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.

Have a look at these pages
http://www.cmake.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain
http://www.cmake.org/Wiki/CMake_Useful_Variables



On Sat, Jun 7, 2014 at 6:30 AM, Michael Enright <michael.enright at gmail.com>
wrote:

> 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.
>
> 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.
>
> 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
> http://www.cmake.org/cmake/help/cmake2.6docs.html
> and
> http://www.cmake.org/cmake/help/v2.8.12/cmake.html
>
>
> Neither of those contain the string "CMAKE_COMPILER" except as substrings
> of other names such as CMAKE_COMPILER_2005.
>
> Can anyone provide a link or say anything about this variable?
>
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140607/f77152ff/attachment.html>


More information about the CMake mailing list