Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread Michael Hertling
On 01/05/2012 02:42 PM, Mateusz Loskot wrote: > On 5 January 2012 12:31, vivek goel wrote: >> I am using code >> where f contains the file name >> >> >> set(MY_PATH "-D__RELATIVE_PATH__=\\\"ab\\\"") >> set_source_files_properties(${f} PROPERTIES >> COMPILE_FLAGS ${MY_PATH}) >> >> I am not able t

Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread vivek goel
Using COMPILE_DEFINITIONS is also not working. set(MY_PATH "__RELATIVE_PATH__=ab") set_source_files_properties(${f} PROPERTIES COMPILE_DEFINITIONS ${MY_PATH}) On 1/5/12, Mateusz Loskot wrote: > On 5 January 2012 12:31, vivek goel wrote: >> I am using code >> where f contains the file name >

Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread Mateusz Loskot
On 5 January 2012 12:31, vivek goel wrote: > I am using code > where f contains the file name > > > set(MY_PATH "-D__RELATIVE_PATH__=\\\"ab\\\"") > set_source_files_properties(${f} PROPERTIES >   COMPILE_FLAGS ${MY_PATH}) > > I am not able to see -D__RELATIVE_PATH__ inside compilation flags. You

[CMake] Problem with set_source_files_properties

2012-01-05 Thread vivek goel
I am using code where f contains the file name set(MY_PATH "-D__RELATIVE_PATH__=\\\"ab\\\"") set_source_files_properties(${f} PROPERTIES COMPILE_FLAGS ${MY_PATH}) I am not able to see -D__RELATIVE_PATH__ inside compilation flags. What is wrong ? -- regards Vivek Goel -- Powered by www.ki