<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Adding math library with `-lm` to CMake build of nrf mesh breaks SES project generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53500/adding-math-library-with--lm-to-cmake-build-of-nrf-mesh-breaks-ses-project-generation</link><description>I am building a project with CMake, inside nRF SDK for Mesh 3.2.0, which uses the math library: 
 1. source file includes math.h 
 2. CMakeLists.txt adds m to target_link_libraries() . 
 This section of the file now looks like this: 
 target_link_libraries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 15:02:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53500/adding-math-library-with--lm-to-cmake-build-of-nrf-mesh-breaks-ses-project-generation" /><item><title>RE: Adding math library with `-lm` to CMake build of nrf mesh breaks SES project generation</title><link>https://devzone.nordicsemi.com/thread/230687?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 15:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916f5535-d114-49d8-8f52-7e9154b1c63d</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This has been fixed and will be added in the next release of the Mesh SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding math library with `-lm` to CMake build of nrf mesh breaks SES project generation</title><link>https://devzone.nordicsemi.com/thread/229108?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca3eecb5-8fc7-489a-a1c0-f733a0ff717d</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This bug is still present in v4.0.0 mesh SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have published a full reproduction of this on Github with an unmodified example (except to add a reference to the math library) on the stock SDK, see&amp;nbsp;&lt;a href="https://github.com/siriobalmelli/nrf_mesh_4.0.0_lm"&gt;https://github.com/siriobalmelli/nrf_mesh_4.0.0_lm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did try using &amp;#39;set_target_link_options&amp;#39; but it did not work (see details in&amp;nbsp;&lt;a href="https://github.com/siriobalmelli/nrf_mesh_4.0.0_lm#reproduction"&gt;https://github.com/siriobalmelli/nrf_mesh_4.0.0_lm#reproduction&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is breaking interoperability between automated toolchains using CMake and programmers using SES. Any help is appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding math library with `-lm` to CMake build of nrf mesh breaks SES project generation</title><link>https://devzone.nordicsemi.com/thread/217130?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 14:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b62d1b8-a913-405e-9632-64c008cf67e2</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Would have thought that &amp;quot;&lt;span&gt;Adding&amp;nbsp;&lt;/span&gt;&lt;code&gt;lm&lt;/code&gt;&lt;span&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;code&gt;-lm&lt;/code&gt;&lt;span&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;set_target_link_options()&lt;/code&gt;&lt;span&gt;&amp;nbsp;(tried both) (see&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh/176144"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh/176144&lt;/a&gt;&lt;span&gt;)&amp;quot; should have helped.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you trying with an unmodified example from the mesh SDK? Could you try downloading a fresh copy of the SDK and try again?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>