<div dir="ltr">Be aware that
<span class="gmail-im">CMAKE_TRY_COMPILE_PLATFORM_VARIABLES</span> only works with the <span class="gmail-target" id="gmail-index-1-command:try_compile"></span><a class="gmail-reference gmail-internal" href="https://cmake.org/cmake/help/latest/command/try_compile.html#command:try_compile" title="try_compile"><code class="gmail-xref gmail-cmake gmail-cmake-command gmail-docutils gmail-literal gmail-notranslate"><span class="gmail-pre">try_compile()</span></code></a>
command source file signature. Unfortunately it doesn't work with try_compile() whole projects signature. The section on Other Behavior Settings mostly only applies to the source file signature.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 1, 2019 at 2:02 AM <<a href="mailto:Torsten@robitzki.de">Torsten@robitzki.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> Am 31.01.2019 um 21:10 schrieb Craig Scott <<a href="mailto:craig.scott@crascit.com" target="_blank">craig.scott@crascit.com</a>>:<br>
> <br>
> 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().<br>
<br>
Works like a charm. Thanks a lot!<br>
<br>
Torsten<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>