<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Yes, this was the problem. I was running cmake .. -LA to check the
cache variables <i>before</i> setting the toolchain. You can even
see that the CMAKE_TOOLCHAIN_FILE is not set. <br>
<div class="moz-forward-container">
<p>It is working now, thank you.<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 17/07/2019 18:12, Robert Maynard
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFzjYVomDyvx3ipiNzM13DOrr0t-Tb_3qoC7uRYbUPrRTrwFkQ@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">Is this with a clean build directory? The toolchain file is ignored
once CMake has run and has done compiler detection.
On Wed, Jul 17, 2019 at 11:29 AM hex <a class="moz-txt-link-rfc2396E" href="mailto:hex7c3@gmail.com" moz-do-not-send="true"><hex7c3@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I specified my toolchain like so:
1cmake -DCMAKE_TOOLCHAIN_FILE=myToolchain.cmake ..
and created a toolchain file in project/myToolchain.cmake.
Using relative path CMake first looks relative to the top of the build directory, then if not found there, relative to the top of the source directory.
What means “the top of the source directory”? I placed the file in the source directory and receive:
1234CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE
--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com" moz-do-not-send="true">www.kitware.com</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ" moz-do-not-send="true">http://www.cmake.org/Wiki/CMake_FAQ</a>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:
CMake Support: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/support.html" moz-do-not-send="true">http://cmake.org/cmake/help/support.html</a>
CMake Consulting: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/consulting.html" moz-do-not-send="true">http://cmake.org/cmake/help/consulting.html</a>
CMake Training Courses: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/training.html" moz-do-not-send="true">http://cmake.org/cmake/help/training.html</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="https://cmake.org/mailman/listinfo/cmake" moz-do-not-send="true">https://cmake.org/mailman/listinfo/cmake</a>
</pre>
</blockquote>
</blockquote>
</div>
</body>
</html>