Re: [CMake] Overriding C compiler flags in CMakeLists files

2011-08-17 Thread Andrei Buzgan
- From: Michael Wild them...@gmail.com To: cmake@cmake.org Sent: Tuesday, August 9, 2011 10:32:58 AM Subject: Re: [CMake] Overriding C compiler flags in CMakeLists files On Tue 09 Aug 2011 04:28:51 PM CEST, Tim Gallagher wrote: In your leaf CMakeLists.txt, try doing

[CMake] Overriding C compiler flags in CMakeLists files

2011-08-09 Thread Andrei Buzgan
Hello, I'm trying to compile out-of-source an embedded C application using CMake and MinGW and to use specific compiler flags for some source files. I tried the approach described in http://www.cmake.org/pipermail/cmake/2011-April/043703.html but it didn't work for me. I'm describing below what

Re: [CMake] Overriding C compiler flags in CMakeLists files

2011-08-09 Thread Michael Wild
On Tue 09 Aug 2011 04:28:51 PM CEST, Tim Gallagher wrote: In your leaf CMakeLists.txt, try doing: set_source_files_properties(${SOURCE_FILES} PROPERTIES COMPILE_FLAGS ${LOCAL_COMPILE_FLAGS}) where ${SOURCE_FILES} is a list of the files in the directory and ${LOCAL_COMPILE_FLAGS} is the

Re: [CMake] Overriding C compiler flags in CMakeLists files

2011-08-09 Thread Tim Gallagher
contained in the directory. I assumed COMPILE_FLAGS could, if it existed, operate the same way. Tim - Original Message - From: Michael Wild them...@gmail.com To: cmake@cmake.org Sent: Tuesday, August 9, 2011 10:32:58 AM Subject: Re: [CMake] Overriding C compiler flags in CMakeLists files On Tue

Re: [CMake] Overriding C compiler flags in CMakeLists files

2011-08-09 Thread Michael Wild
- Original Message - From: Michael Wild them...@gmail.com To: cmake@cmake.org Sent: Tuesday, August 9, 2011 10:32:58 AM Subject: Re: [CMake] Overriding C compiler flags in CMakeLists files On Tue 09 Aug 2011 04:28:51 PM CEST, Tim Gallagher wrote: In your leaf CMakeLists.txt, try doing

Re: [CMake] Overriding C compiler flags in CMakeLists files

2011-08-09 Thread Michael Hertling
COMPILE_FLAGS could, if it existed, operate the same way. Tim - Original Message - From: Michael Wild them...@gmail.com To: cmake@cmake.org Sent: Tuesday, August 9, 2011 10:32:58 AM Subject: Re: [CMake] Overriding C compiler flags in CMakeLists files On Tue 09 Aug 2011 04:28:51 PM