CMake/Help
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
..
command CTest: added documentation for the "Upload" submission PART 2013-11-15 15:22:08 +01:00
generator VS: Add version year to generator names 2013-10-28 13:43:14 -04:00
include Help: Factor out COMPILE_DEFINITIONS disclaimer duplication 2013-10-16 09:22:38 -04:00
manual Add compiler target compile options. 2013-11-19 12:38:53 -05:00
module Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
policy CMP0038: Add missing '.' to policy summary line 2013-11-12 11:54:49 -05:00
prop_cache Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
prop_dir Help: Factor out cmake-generator-expressions manual page 2013-10-16 09:22:38 -04:00
prop_gbl Add the AUTOGEN_TARGETS_FOLDER and obsolete AUTOMOC_TARGETS_FOLDER. 2013-10-24 11:50:47 +02:00
prop_sf Add automatic rcc invocation for Qt. 2013-10-24 12:30:41 +02:00
prop_test Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
prop_tgt Fix INTERFACE_LINK_LIBRARIES documentation typos 2013-11-04 08:33:38 -05:00
variable Add compiler target compile options. 2013-11-19 12:38:53 -05:00
index.rst Help: Add cmake-language.7 manual 2013-11-08 08:41:46 -05:00