Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-08 Thread Jerry Gagelman
Hi Alex, Sorry about forgetting to CC the list last time. You're right: it was the CXX_FLAGS vs C_FLAGS problem. I have so many things to think about that I don't even realize which language is being compiled :-) Jerry 2011/7/7 Alexander Neundorf > Hi, > > On Wednesday 06 July 2011, Jerry Gage

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-07 Thread Alexander Neundorf
Hi, On Wednesday 06 July 2011, Jerry Gagelman wrote: > Thanks, Alex. That was my bad. I also realized that the CXX_FLAGS were > (correctly) getting passed to the compiler. Changing CMakeLists.txt > accordingly does fix the last problem that I reported. I'm happy that I could help you. So the prob

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-07 Thread Yuri Timenkov
May be you're looking for overriding default flags? http://www.cmake.org/Wiki/CMake_FAQ#Make_Override_Files Although it mentions VS static runtime, this approach is very useful to set own initial flags in CMake. On Wed, Jul 6, 2011 at 5:41 PM, Jerry Gagelman wrote: > I'm redistributing a library

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-06 Thread Alexander Neundorf
On Wednesday 06 July 2011, Jerry Gagelman wrote: > 2011/7/6 Alexander Neundorf > > > On Wednesday 06 July 2011, Jerry Gagelman wrote: > > > > If these variables exist already in the cache, then a simple > > set(... CACHE ...) > > does not override the value which is already in the cache. > > You

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-06 Thread Michael Hertling
On 07/06/2011 03:41 PM, Jerry Gagelman wrote: > I'm redistributing a library for which the original authors have hand coded > their own Makefile, but I would like to streamline everything with CMake. > Their Makefile provides for Debug and Release flavored configurations, each > has its own set of

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-06 Thread Jerry Gagelman
2011/7/6 Alexander Neundorf > On Wednesday 06 July 2011, Jerry Gagelman wrote: > > If these variables exist already in the cache, then a simple > set(... CACHE ...) > does not override the value which is already in the cache. > You can only override a value in the cache from a CMakeLists.txt by u

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-06 Thread Alexander Neundorf
On Wednesday 06 July 2011, Jerry Gagelman wrote: > I'm redistributing a library for which the original authors have hand coded > their own Makefile, but I would like to streamline everything with CMake. > Their Makefile provides for Debug and Release flavored configurations, each > has its own set

[CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-06 Thread Jerry Gagelman
I'm redistributing a library for which the original authors have hand coded their own Makefile, but I would like to streamline everything with CMake. Their Makefile provides for Debug and Release flavored configurations, each has its own set of CFLAGS, and for consistency I would like to incorporat