Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Daniel Schepler
It doesn't look like it's documented, at least in the command line --help-variable. It's a special case, which I think works for a lot of the build flag related cache variables (though for a lot of the others, you probably need to put values in e.g. a c_flag_overrides.cmake included by setting

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Ruslan Baratov via CMake
On 31-Jul-15 19:44, Daniel Schepler wrote: This seems to work for me: set(CMAKE_BUILD_TYPE_INIT RelWithDebInfo) By the way you need to set it before first 'project' command. Also it will not have any effects for multi-config generators like Xcode or Visual Studio. -- Powered by www.kitware.co

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Ruslan Baratov via CMake
On 31-Jul-15 19:43, Bill Hoffman wrote: On 7/31/2015 12:33 PM, Ruslan Baratov wrote: > rm -rf _builds > cmake -H. -B_builds > cmake -H. -B_builds -DA=ON > grep '\' _builds/CMakeCache.txt B:STRING=There is no A I'm not saying cache is a bad idea, I'm just saying that whe

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Dan Kegel
On Fri, Jul 31, 2015 at 11:44 AM, Daniel Schepler wrote: >> Here's another example from real life. Maybe I'm just being an idiot, >> but this is what I had to do to set a default: >> >> IF(DEFINED CMAKE_BUILD_TYPE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "None")) >>SET(CMAKE_BUILD_TYPE ${CMAKE_B

Re: [CMake] List of files not containing string

2015-07-31 Thread Crast, Nicholas
Understood. I am doing it this way, I was just thinking maybe there was some more sophisticated pattern matching that I could do (get all files matching this regular expression) without looping through the whole list. Thanks -Nick Nick Crast Software Eng

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Daniel Schepler
This seems to work for me: set(CMAKE_BUILD_TYPE_INIT RelWithDebInfo) -- Daniel Schepler From: CMake [cmake-boun...@cmake.org] on behalf of Dan Kegel [d...@kegel.com] Sent: Friday, July 31, 2015 9:38 AM To: Ruslan Baratov Cc: cmake; Bill Hoffman Subject: Re:

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Dan Kegel
On Fri, Jul 31, 2015 at 11:43 AM, Bill Hoffman wrote: > Something like: > $CACHE{A} > > Then, it would never be confused with the the variable A. However, getting > rid of the cache would not be something that could be done. Having a cache for invariants is a good thing if it could be done witho

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Bill Hoffman
On 7/31/2015 12:33 PM, Ruslan Baratov wrote: > rm -rf _builds > cmake -H. -B_builds > cmake -H. -B_builds -DA=ON > grep '\' _builds/CMakeCache.txt B:STRING=There is no A I'm not saying cache is a bad idea, I'm just saying that when users hit such kind of situations that'

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Dan Kegel
On Fri, Jul 31, 2015 at 11:33 AM, Ruslan Baratov wrote: >>> I never use the GUI, and consider the cache an anti-feature there solely >>> to support GUI users. It complicates my life, and I'd love to see it go. >> >> In what way do you think it is causing you trouble? > > Here is an example: > >

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Ruslan Baratov via CMake
On 30-Jul-15 20:36, Bill Hoffman wrote: On 7/30/2015 11:56 AM, Dan Kegel wrote: I believe the latter, but not the former. I never use the GUI, and consider the cache an anti-feature there solely to support GUI users. It complicates my life, and I'd love to see it go. It is certainly not there

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Dan Kegel
On Fri, Jul 31, 2015 at 2:05 AM, Nagy-Egri Máté Ferenc wrote: > I agree that JSON looks better. I have no fetish about XML and I could be > convinced on just about anything in the choice of the IR. The only important > point is that it SHOULD EXIST and be well defined. Hooking all the > generators

Re: [CMake] List of files not containing string

2015-07-31 Thread J Decker
On Fri, Jul 31, 2015 at 6:13 AM, Crast, Nicholas < nicholas.cr...@saabsensis.com> wrote: > Well that's a way to do it, but there's not a way to do all of that in one > shot? > > make a macro to do it? it's not like that's all that much to do... files( glob file_list *) foreach( file ${file_list}

Re: [CMake] List of files not containing string

2015-07-31 Thread Crast, Nicholas
Well that's a way to do it, but there's not a way to do all of that in one shot? Nick Crast Software Engineer Saab Sensis Corporation Phone: 315-445-5703 Email: nicholas.cr...@saabsensis.com -Original Message- From: David Cole [mailto:dlrd...@aol

[CMake] Fwd: CMake and Visual Studio 9 2008: use gfortran instead of ifort

2015-07-31 Thread japedo24
Hi guys, I am currently working on some CMake build scripts that were designed for crossplatform use. However they are not working perfectly under windows. The isolated testcase looks like this: initialize a fortran project. CMake always tries to use 'ifort' from Visual Studio as compiler but I d

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread J Decker
> > > As for the GUI editor of a project, it has occured to me (and others too) > that such a tool would be darn useful. If it were a seperate tool, I’d > still use it just about every day, but you are correct that this feature > would be best embedded into the IDE. I am actively engaged with the f

Re: [CMake] [cmake-developers] CMake IR

2015-07-31 Thread Nagy-Egri Máté Ferenc via CMake
@all: Thank you folks for the input and the active discussion (not shifting into flame and troll wars). @Dave&Dan: I agree that JSON looks better. I have no fetish about XML and I could be convinced on just about anything in the choice of the IR. The only important point is that it SHOUL

Re: [CMake] BundleUtilities not working

2015-07-31 Thread Rashad M
On Thu, Jul 30, 2015 at 8:55 PM, Bill Somerville wrote: > On 30/07/2015 19:36, Rashad M wrote: > > Hi all, > > Hi Rashad > > > We have a similar way here to get dll dependencies recursively and create > a zip archive. Ideally, this could be integrated in cmake but not sure if > that will be ok on

Re: [CMake] Passing generator expressions in variables

2015-07-31 Thread Auer, Jens
Okay, please forget this question. I misread the error message, and my example had a type. The errors actually are generated in another macro which tries to iterate over the source files of a target, and fails to find the generator expression. Best wishes, Jens -- Dr. Jens Auer | CGI | Softw