[CMake] #cmakedefine vs #define

2011-03-15 Thread Balamurali Ananthan
Hello, Sorry if this question is too primitive. I am trying to extract the build dir into the source code by populating it in a variable in my config.h file. I do this by adding the following line in config.h.in #cmakedefine PROJ_BUILD_DIR_CMAKEDEFINE ${PROJECT_BINARY_DIR} In the config.h,

Re: [CMake] #cmakedefine vs #define

2011-03-15 Thread Alan W. Irwin
On 2011-03-15 16:26-0600 Balamurali Ananthan wrote: Hello, Sorry if this question is too primitive. I am trying to extract the build dir into the source code by populating it in a variable in my config.h file. I do this by adding the following line in config.h.in #cmakedefine