ok I found it:<br><br>set_property(<br> TARGET my_target<br> PROPERTY COMPILE_DEFINITIONS IL_STD<br> )<br><br>Nehme<br><br><br><br><div class="gmail_quote">On Tue, Jan 18, 2011 at 11:44 AM, Nehme Bilal <span dir="ltr"><<a href="mailto:nehmebilal@gmail.com">nehmebilal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br><br>I am trying to use CMake to build a project that uses CPLEX. The cplex compiling instructions says:<br>
o Add IL_STD to the Preprocessor Definitions field. This defines the macro IL_STD which is needed to use the STL.<br>
<br>for linux, it says to add the following command to the Makefile:<br><br># ---------------------------------------------------------------------<br># Compiler options <br># ---------------------------------------------------------------------<br>
CCOPT = -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD<br><br>Is there a command in CMake that can achieve this and make it work for both windows and linux ?<br><br>Thank you !<br><font color="#888888"><br>Nehme<br>
</font></blockquote></div><br>