ok I found it:

set_property(
   TARGET my_target
   PROPERTY COMPILE_DEFINITIONS IL_STD
   )

Nehme



On Tue, Jan 18, 2011 at 11:44 AM, Nehme Bilal <[email protected]> wrote:

> Hello,
>
> I am trying to use CMake to build a project that uses CPLEX. The cplex
> compiling instructions says:
>      o Add IL_STD to the Preprocessor Definitions field. This defines the
> macro IL_STD which is needed to use the STL.
>
> for linux, it says to add the following command to the Makefile:
>
> # ---------------------------------------------------------------------
> # Compiler options
> # ---------------------------------------------------------------------
> CCOPT = -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD
>
> Is there a command in CMake that can achieve this and make it work for both
> windows and linux ?
>
> Thank you !
>
> Nehme
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to