<div dir="ltr">Hi,<div><br></div><div>Thank you David. Which version of cmake and operational system are you using?<br>In my CMakeLists.txt file, I tried to set</div><div><br></div><div><div>set(CMAKE_EXPORT_COMPILE_<wbr>COMMANDS 1)</div><div><br></div><div>and</div><div><br></div><div>set(CMAKE_EXPORT_COMPILE_<wbr>COMMANDS ON)</div></div><div><br></div><div>without success, unfortunately.</div><br><div class="gmail_quote"><div dir="ltr">Em qua, 7 de dez de 2016 às 08:13, Wagner, David <<a href="mailto:david.wagner@intel.com" target="_blank">david.wagner@intel.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
On 05/12/2016 12:31, Fabrício Ceolin wrote:<br class="m_-1478772841495627646gmail_msg">
> Hi,<br class="m_-1478772841495627646gmail_msg">
><br class="m_-1478772841495627646gmail_msg">
> I am trying to put<br class="m_-1478772841495627646gmail_msg">
> set(CMAKE_EXPORT_COMPILE_<wbr>COMMANDS ,1) inside a toolchain file but the command<br class="m_-1478772841495627646gmail_msg">
> has no effect there. I've tried to put it in CMakeLists.txt too using the<br class="m_-1478772841495627646gmail_msg">
> previosly set and add_definitions(-DCMAKE_<wbr>EXPORT_COMPILE_COMMANDS=1) without<br class="m_-1478772841495627646gmail_msg">
> success.<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
"set(CMAKE_EXPORT_COMPILE_<wbr>COMMANDS 1)" inside the CMakeLists.txt works for me<br class="m_-1478772841495627646gmail_msg">
but note that you have an extra comma before the "1" value. CMake only uses<br class="m_-1478772841495627646gmail_msg">
commas for lists. It probably also works in the toolchain file. I don't see how<br class="m_-1478772841495627646gmail_msg">
using add_definitions() would work because it is only used in the compiler's<br class="m_-1478772841495627646gmail_msg">
command line.<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
W<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
--<br class="m_-1478772841495627646gmail_msg">
David Wagner<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
complex != complicated<br class="m_-1478772841495627646gmail_msg">
------------------------------<wbr>------------------------------<wbr>---------<br class="m_-1478772841495627646gmail_msg">
Intel Corporation SAS (French simplified joint stock company)<br class="m_-1478772841495627646gmail_msg">
Registered headquarters: "Les Montalets"- 2, rue de Paris,<br class="m_-1478772841495627646gmail_msg">
92196 Meudon Cedex, France<br class="m_-1478772841495627646gmail_msg">
Registration Number:  302 456 199 R.C.S. NANTERRE<br class="m_-1478772841495627646gmail_msg">
Capital: 4,572,000 Euros<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
This e-mail and any attachments may contain confidential material for<br class="m_-1478772841495627646gmail_msg">
the sole use of the intended recipient(s). Any review or distribution<br class="m_-1478772841495627646gmail_msg">
by others is strictly prohibited. If you are not the intended<br class="m_-1478772841495627646gmail_msg">
recipient, please contact the sender and delete all copies.<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
--<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
Powered by <a href="http://www.kitware.com" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">www.kitware.com</a><br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br class="m_-1478772841495627646gmail_msg">
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br class="m_-1478772841495627646gmail_msg">
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br class="m_-1478772841495627646gmail_msg">
<br class="m_-1478772841495627646gmail_msg">
Follow this link to subscribe/unsubscribe:<br class="m_-1478772841495627646gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" class="m_-1478772841495627646gmail_msg" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br class="m_-1478772841495627646gmail_msg">
</blockquote></div></div>