<div dir="ltr">I got a reply on the bug tracker. It's a normal and documented behavior.<div><br></div><div><a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_DEFINITIONS_CONFIG.html">http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_DEFINITIONS_CONFIG.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 10:14 AM, Carl Poirier <span dir="ltr"><<a href="mailto:carl.poirier.2@gmail.com" target="_blank">carl.poirier.2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>Thanks for the information. I opened a bug ticket <a href="http://www.cmake.org/Bug/view.php?id=15750" target="_blank">here</a>.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Carl</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 4:33 PM, Hendrik Sattler <span dir="ltr"><<a href="mailto:post@hendrik-sattler.de" target="_blank">post@hendrik-sattler.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
Am 14. September 2015 22:25:00 MESZ, schrieb Pau Garcia i Quiles <<a href="mailto:pgquiles@elpauer.org" target="_blank">pgquiles@elpauer.org</a>>:<br>
>Hello,<br>
><br>
>Have you tried<br>
><br>
>set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS_DEBUG<br>
>-DATEST)<br>
<br>
</span>That would be the right thing for add_definitions() but not here.<br>
He could try with generator expressions though.<br>
<span><br>
><br>
>On Mon, Sep 14, 2015 at 9:35 PM, Carl Poirier<br>
><<a href="mailto:carl.poirier.2@gmail.com" target="_blank">carl.poirier.2@gmail.com</a>><br>
>wrote:<br>
><br>
>> Hi folks,<br>
>><br>
>> I need some help setting the COMPILE_DEFINITIONS_<CONFIG>. I'm using<br>
>the<br>
>> Visual Studio 2008 generator. I use this command to do so which I<br>
>took in<br>
</span>>> the notes <<a href="http://www.cmake.org/Wiki/CMake_2.6_Notes" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_2.6_Notes</a>> when the<br>
<div><div>>feature<br>
>> was added:<br>
>><br>
>> set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS_DEBUG<br>
>ATEST)<br>
>><br>
>> Then, once the solution and project is generated, I go into the<br>
>project<br>
>> properties under the C++ preprocessor and I can't see the define.<br>
>Removing<br>
>> the configuration name does set it correctly for all of them, so it<br>
>leads<br>
>> me to believe the rest of my CMakeLists.txt is fine:<br>
>><br>
>> set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS ATEST)<br>
>><br>
>> So is this supposed to work?<br>
>><br>
>> Thank you,<br>
>><br>
>> Carl<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:<br>
>> <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<br>
>more<br>
>> 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<br>
>> <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="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
>><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="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>