ankit jain wrote: > Hi all, > > If i want to compile through g++ as: > > g++ -Dname=value > > The same if i want to do with cmake how to do it. Whether i need to > make some entry in CMakeCache.txt or somewhere else? > > Ankit See ADD_DEFINITIONS in the CMake manual. -- Best regards, Sergey Rudchenko