CMake/Help/manual
Stephen Kelly 76552d595d Add compiler target compile options.
For clang, this allows passing -target <triple> to the compiler, and
for qcc, -V<arch> using toolchain files containing something like

 set(triple arm-linux-gnueabihf)
 set(CMAKE_C_COMPILER "/usr/bin/clang")
 set(CMAKE_C_COMPILER_TARGET ${triple})
 set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
 set(CMAKE_CXX_COMPILER_TARGET ${triple})

or

 set(arch gcc_ntoarmv7le)
 set(CMAKE_C_COMPILER /opt/qnx650/host/linux/x86/usr/bin/qcc)
 set(CMAKE_C_COMPILER_TARGET ${arch})
 set(CMAKE_CXX_COMPILER /opt/qnx650/host/linux/x86/usr/bin/QCC)
 set(CMAKE_CXX_COMPILER_TARGET ${arch})

Both clang and qcc are inherently cross compiler( driver)s.

When cross-compiling with clang, use the CMAKE_${lang}_COMPILER_TARGET
as the _CMAKE_TOOLCHAIN_PREFIX to find the appropriate binutils.

When cross-compiling with QNX qcc, use the CMAKE_${lang}_COMPILER_TARGET
to set the appropriate _CMAKE_TOOLCHAIN_PREFIX.
2013-11-19 12:38:53 -05:00
..
ccmake.1.rst Help: Refine manual/*.1.rst usage summaries 2013-11-04 11:06:14 -05:00
cmake-commands.7.rst Help: Limit reference manual toctree depth to 1 2013-11-01 11:12:02 -04:00
cmake-developer.7.rst Help: Reference cmake-language.7 comment docs from cmake-developer.7 2013-11-08 08:41:49 -05:00
cmake-generator-expressions.7.rst Help: Glob manual/*.rst in Sphinx configuration 2013-10-30 09:58:25 -04:00
cmake-generators.7.rst Help: Limit reference manual toctree depth to 1 2013-11-01 11:12:02 -04:00
cmake-gui.1.rst Help: Refine manual/*.1.rst usage summaries 2013-11-04 11:06:14 -05:00
cmake-language.7.rst Help: Add cmake-language.7 manual 2013-11-08 08:41:46 -05:00
cmake-modules.7.rst Help: Limit reference manual toctree depth to 1 2013-11-01 11:12:02 -04:00
cmake-policies.7.rst Disallow linking to utility targets (#13902). 2013-11-07 11:06:40 +01:00
cmake-properties.7.rst Help: Limit reference manual toctree depth to 1 2013-11-01 11:12:02 -04:00
cmake-variables.7.rst Add compiler target compile options. 2013-11-19 12:38:53 -05:00
cmake.1.rst Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00
cpack.1.rst Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00
ctest.1.rst Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00
LINKS.txt Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00
OPTIONS_BUILD.txt Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00
OPTIONS_HELP.txt Help: Format manual/*.1.rst options as definition lists 2013-11-14 10:05:32 -05:00