[CMake] VS Preprocessor Definitions

Nehme Bilal nehmebilal at gmail.com
Wed Jan 19 09:43:51 EST 2011


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 <nehmebilal at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110119/7da4b7cc/attachment.htm>


More information about the CMake mailing list