[CMake] Checking Variables in a tool-chain file

Torsten at Robitzki.de Torsten at Robitzki.de
Fri Feb 1 02:02:42 EST 2019


> Am 31.01.2019 um 21:10 schrieb Craig Scott <craig.scott at crascit.com>:
> 
> This is precisely the scenario that the CMAKE_TRY_COMPILE_PLATFORM_VARIABLES variable is meant for. It allows a toolchain file to specify additional variables that should be passed along to try_compile().

Works like a charm. Thanks a lot!

Torsten

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://cmake.org/pipermail/cmake/attachments/20190201/a5c8a5ff/attachment.sig>


More information about the CMake mailing list