[CMake] VS Preprocessor Definitions

Nehme Bilal nehmebilal at gmail.com
Tue Jan 18 11:44:45 EST 2011


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/20110118/d49cf934/attachment-0001.htm>


More information about the CMake mailing list