[cmake-developers] [CMake] Toolchains and CMAKE_FORCE_C_COMPILER in 3.5

James Crosby James.Crosby at arm.com
Fri Feb 26 07:18:53 EST 2016


> On 24 Feb 2016, at 16:08, Brad King <brad.king at kitware.com> wrote:
>
> try_compile: Add option to control type of target
> https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7f1bd9fe
>
> One should be able to simply add
>
>    set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
>
> to the toolchain file.  Then CMakeForceCompiler should not be needed anymore.
>
> Please try it out.

Can confirm it works for armcc - thanks!

James

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.



More information about the cmake-developers mailing list