[CMake] Problem with add_definitions on CMake 2.6.0 RC 6 and RC 8 on AIX

2008-04-17 Thread Dieter Rosch
Hi, I have a project that compiles perfectly on AIX with CMake 2.4.8. However, I create a new build directory and use CMake 2.6.0 RC 6 or 8 to build and it fails. The problem seems to be that the 2 newer version are ignoring my ADD_DEFINITIONS statements. Has anyone else experienced this?

Re: [CMake] Problem with add_definitions on CMake 2.6.0 RC 6 and RC 8 on AIX

2008-04-17 Thread Alexander Neundorf
On Thursday 17 April 2008, Dieter Rosch wrote: Hi, I have a project that compiles perfectly on AIX with CMake 2.4.8. However, I create a new build directory and use CMake 2.6.0 RC 6 or 8 to build and it fails. The problem seems to be that the 2 newer version are ignoring my

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-26 Thread Yann Renard
Kishore, Jonnalagadda (IE10) wrote: I have problems with ADD_DEFINITIONS : I have two target in my CMakeLists which I'd like to have different -D flags. If I add ADD_DEFINITIONS, it seems like both targets are affected. How coul I do such thing ? You have two options. 1) Set target

RE: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread Kishore, Jonnalagadda (IE10)
I have problems with ADD_DEFINITIONS : I have two target in my CMakeLists which I'd like to have different -D flags. If I add ADD_DEFINITIONS, it seems like both targets are affected. How coul I do such thing ? You have two options. 1) Set target specific definitions using the command

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread Werner Smekal
Hi, I would say the third and correct option is to use SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property. Regards, Werner Kishore, Jonnalagadda (IE10) wrote: I have problems with ADD_DEFINITIONS : I have two target in my CMakeLists which I'd like to have different -D

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Werner Smekal wrote: I would say the third and correct option is to use SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property. I agree. There is one minor bug with this command that I've filed below that people should be aware of.

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread Bill Hoffman
Philip Lowman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Werner Smekal wrote: I would say the third and correct option is to use SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property. I agree. There is one minor bug with this command that I've filed below

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill Hoffman wrote: Philip Lowman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Werner Smekal wrote: I would say the third and correct option is to use SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property. I

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-23 Thread kitts
On Saturday 24 Mar 2007 IST, Werner Smekal wrote: I would say the third and correct option is to use SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property. But then going this way is again going to affect both the targets if they depend on the same source files. -- Cheers!