Mike Jackson wrote:
This is going to be a hopefully simple question.

I need to pass a simple preprocessor definition to the compiler based on if the system is windows. So I created a simple option:

OPTION(WIN_LARGE_FILE_SUPPORT "Description" ON)
IF (WIN_LARGE_FILE_SUPPORT)
ADD_DEFINITIONS("-D WIN_LARGE_FILE_SUPPORT")
ENDIF (WIN_LARGE_FILE_SUPPORT)

But Visual studio is adding it as just "WIN_LARGE_FILE_SUPPORT" and not "-D WIN_LARGE_FILE_SUPPORT". So what am I doing wrong?

This is with Cmake 2.4.6 and Visual Studio 2003 .Net
Remove the space.  -DWIN_LARGE_FILE_SUPPORT

-Bill

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to