2008/2/15, Harsha Sri-Narayana <[EMAIL PROTECTED]>: > I have this code in a cpp file > > #ifdef USE_GLEW > #include <GL/glew.h> > #endif > > > I have this in a cmakelists.txt file: > > SET_TARGET_PROPERTIES(rtf PROPERTIES > LINKER_LANGUAGE CXX > COMPILE_FLAGS "USE_GLEW" > )
Could you try COMPILE_FLAGS "-DUSE_GLEW" (add the -D yourself for defining the MACRO). -- Erk _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
