Re: [CMake] Anybody using IAR compiler here ?

2010-06-01 Thread Jesper Eskilson
On 05/31/2010 10:53 PM, Alexander Neundorf wrote: On Monday 31 May 2010, Jesper Eskilson wrote: On 05/30/2010 02:13 PM, Alexander Neundorf wrote: That's also ok. Could you please post the output of the IAR AVR and ARM assemblers when called without any arguments here ? (or put them into http

Re: [CMake] vcproj2cmake.rb script: announcing new version / hosting questions

2010-06-15 Thread Jesper Eskilson
. -- Jesper Eskilson Developer IAR Systems http://www.iar.com ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

[CMake] add_test does not work as documented

2010-09-21 Thread Jesper Eskilson
Hi, I cannot get add_test to work as documented. add_test(mytest MyExe) correctly runs MyExe. However, if I try to use any of the generator expressions (such as $CONFIGURATION), it fails: add_test(mytest ${SOMEVARIABLE}/$CONFIGURATION/MyExe) fails to locate MyExe correctly, since it

Re: [CMake] add_test does not work as documented

2010-09-21 Thread Jesper Eskilson
On 09/21/2010 01:30 PM, David Cole wrote: $CONFIGURATION only works with the add_test(NAME mytest COMMAND MyCommand) form of the add_test command. But, when you use that form, you have to run ctest -C Release or ctest -C Debug to choose a configuration when you run the tests. Otherwise, tests

[CMake] RULE_XXX

2010-09-29 Thread Jesper Eskilson
I'm trying to use the RULE_XXX properties to customize make output. Is there a way to intercept ALL output from make, including the Build target ..., Building C object..., etc., messages as well? -- /Jesper ___ Powered by www.kitware.com Visit

Re: [CMake] Is there a tool pretty much like cmake for Java?

2010-10-15 Thread Jesper Eskilson
On 10/14/2010 10:22 PM, Michał Czuczman wrote: I would be interested in improving Java support in CMake. A source code parser which finds out names of generated output object files, as in the SCons Java support, is a must. That's what the current Java support in CMake lacks the most. I've

Re: [CMake] Possible 'brief' output options for UnixMakefileGenerator

2010-12-20 Thread Jesper Eskilson
submitted a bugreport about this: http://www.cmake.org/Bug/view.php?id=7062. It was submitted almost two years ago, so I'm not sure it is getting very much attention by the CMake people. -- Jesper Eskilson Developer IAR Systems ___ Powered

Re: [CMake] Gyp VS CMake

2011-02-20 Thread Jesper Eskilson
of a hack, actually. Intercepting open(), read(), and possibly mmap() should cover most cases. -- Jesper Eskilson Developer IAR Systems ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] Weird output

2008-09-17 Thread Jesper Eskilson
Timenkov Yuri wrote: On Tue, Sep 16, 2008 at 11:08 AM, Jesper Eskilson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I get several weird printouts in our build-server logs which I don't get when I'm building from an (interactive) terminal: Dependee

Re: [CMake] Weird output

2008-09-17 Thread Jesper Eskilson
Timenkov Yuri wrote: Anyway, the printout is inside a if(this-Verbose) { ... }, so presumable it is something which can be switched on/off. And it seems not a problem, because CMake just tells why it regenerates dependencies. But it clutters my make output. I like my make output to

Re: [CMake] Weird output

2008-09-18 Thread Jesper Eskilson
Alan W. Irwin wrote: On 2008-09-17 09:10+0200 Jesper Eskilson wrote: Timenkov Yuri wrote: Anyway, the printout is inside a if(this-Verbose) { ... }, so presumable it is something which can be switched on/off. And it seems not a problem, because CMake just tells why it regenerates

[CMake] Regenerating Visual Studio projects

2008-09-18 Thread Jesper Eskilson
Hi all, When CMake (2.6) discovers that a CMakeLists.txt file has changed, and that one or more Visual Studio projects/solutions need to be reloaded, it attempts to interrupt the build, force Visual Studio to reload the projects, and then restart the build. This is really good compared to

Re: [CMake] the switch to subversion?

2008-09-24 Thread Jesper Eskilson
Esben Mose Hansen wrote: On Tuesday 23 September 2008 18:10:05 Mathieu Malaterre wrote: svn 'external' links to repositories (not tested). Do not know what is the default behavior for branching... I'd stay away from svn:externals. We used those extensively in my company, and they are a

Re: [CMake] Stand alone Visual Studio Solution

2008-10-13 Thread Jesper Eskilson
Eran Burstain wrote: Hi ! We want to begin working with CMake in a large project, but we want to have a regular Visual's sln-vcproj projects in the source control, for users that cannot use CMake. Can we activate CMake and force in to create all paths relative ? This is a good starting

[CMake] absolute include paths to resource compiler

2008-12-04 Thread Jesper Eskilson
Due to some weirdness in Visual Studio, I need to be able to give the resource compiler an absolute path: rc ... -I${CMAKE_SOURCE_DIR}/include If I put include_directories(${CMAKE_SOURCE_DIR}/include) CMake converts the absolute path to a relative one. What is the weirdness?

Re: [CMake] Buggy progress reporting

2009-01-26 Thread Jesper Eskilson
Bill Hoffman bill.hoff...@kitware.com writes: Gopala Krishna wrote: On Mon, Jan 26, 2009 at 2:29 AM, Bill Hoffman bill.hoff...@kitware.com wrote: The progress reporting only supports one make at a time in the build tree. -Bill Is there any documentation somewhere on how the percentage

Re: [CMake] Buggy progress reporting

2009-01-26 Thread Jesper Eskilson
Michael Wild them...@gmail.com writes: On 26. Jan, 2009, at 15:05, Jesper Eskilson wrote: Bill Hoffman bill.hoff...@kitware.com writes: Gopala Krishna wrote: On Mon, Jan 26, 2009 at 2:29 AM, Bill Hoffman bill.hoff...@kitware.com wrote: The progress reporting only supports one make

Re: [CMake] How to set CPACK_SOURCE_IGNORE_FILES to remove all source code?

2009-03-10 Thread Jesper Eskilson
Eric Noulard wrote: I should stop writing totally wrong advices for this for a while. Let us know when you're going to start giving wrong advice again. Just so we know. ;-) -- /Jesper ___ Powered by www.kitware.com Visit other Kitware

[CMake] Visual Studio project file reloading in Vista

2009-04-29 Thread Jesper Eskilson
Hi, I'm having trouble getting the automatic project file reloading in Visual Studio 2005 to work when running under Vista (Home Premium 64-bit). Reproduce: * Open VS2005 + a solution generated by CMake * Modify one of the CMakeLists.txt files. * Rebuild solution * Observed behavior:

Re: [CMake] Eclipse Generator and Configuration

2009-05-20 Thread Jesper Eskilson
Pierre-Julien Villoud wrote: Hello everyone, I'm trying to use the Eclipse CDT4 - MinGW Makefiles generator to generate the Eclipse project files. My problem is that it is not possible to choose the configuration (Debug or Release) from the Eclipse platform. Is there any way to make this

[CMake] Eclipse CDT generator

2009-05-20 Thread Jesper Eskilson
I'm giving the CDT backend another shot, following the instructions at http://www.cmake.org/Wiki/Eclipse_CDT4_Generator. I'm using a dual project setup with a build project and source project as described on the wiki. Is there a way to exclude the build project from being indexed? first, my

[CMake] MSYS Makefiles + cl.exe

2009-05-29 Thread Jesper Eskilson
I'm having some trouble in setting up our CMake-system to use MSYS Makefiles together with cl.exe. The environments seems all setup, cl.exe is found, but there is some trouble in detecting the compiler ABI info: $ rm -f CMakeCache.txt cmake ../trunk/ -GMSYS Makefiles -DCMAKE_AR=ar

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-22 Thread Jesper Eskilson
Bill Hoffman wrote: Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Jesper Eskilson
On 05/24/2010 03:40 PM, Michael Hertling wrote: On 05/24/2010 11:20 AM, Jesper Eskilson wrote: Hi, I have two targets, call them A and B. They both link with a third, static library called C. C attempts to invoke a function which is defined by however links with C, i.e. either A or B

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Jesper Eskilson
On 05/25/2010 02:41 PM, Michael Hertling wrote: Exactly: The need for A's repetition in the link line is a sole affair of A and C. Therefore, IMO, it should not be brought explicitly to D's link line whereas an approach with two TARGET_LINK_LIBRARIES() for the A'n'C circular dependency and one

Re: [CMake] Anybody using IAR compiler here ?

2010-05-27 Thread Jesper Eskilson
) 2.17.50.0.17.20070615 Copyright 2007 Free Software Foundation, Inc. ...) There is no such option. To extract the version number, you'll have to run the assembler without options and filter the result through some text-processing tool. Same things goes for other IAR tools. -- Jesper Eskilson

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-27 Thread Jesper Eskilson
On 05/26/2010 05:17 PM, Michael Hertling wrote: Will this still work with an executable E wich depends on B - C - B. Won't C pull in A as well? OK, I suppose, that means you have targets D *and* E in your project, D links against A, E against B, A and B both link against C which finally

Re: [CMake] Visual Studio reload projects

2007-09-04 Thread Jesper Eskilson
Torsten Martinsen wrote: gga wrote: KSpam wrote: I agree that this is a Visual Studio issue; however, I am wondering if anyone knows a workaround. I am not a Windows developer, but I figured that someone on this list would have found a reasonable solution. Sure. Don't use Visual

[CMake] Project being (unnecessarily) relinked

2007-09-04 Thread Jesper Eskilson
Hi! I've got a Visual Studio 8 solution generated by CMake where one of the projects is always being relinked everytime I build it, even when nothing in it has changed (i.e. if I try to build it twice, it always relinks the project the second time). I've studied the build logs, but they do not

Re: [CMake] Project being (unnecessarily) relinked

2007-09-06 Thread Jesper Eskilson
Mathieu Malaterre wrote: On 9/4/07, Jesper Eskilson [EMAIL PROTECTED] wrote: Hi! I've got a Visual Studio 8 solution generated by CMake where one of the projects is always being relinked everytime I build it, even when nothing in it has changed (i.e. if I try to build it twice, it always

Re: [CMake] Project being (unnecessarily) relinked

2007-09-10 Thread Jesper Eskilson
Jesper Eskilson wrote: Mathieu Malaterre wrote: On 9/4/07, Jesper Eskilson [EMAIL PROTECTED] wrote: Hi! I've got a Visual Studio 8 solution generated by CMake where one of the projects is always being relinked everytime I build it, even when nothing in it has changed (i.e. if I try to build

Re: [CMake] Project being (unnecessarily) relinked

2007-09-12 Thread Jesper Eskilson
Jesper Eskilson wrote: Mike Jackson wrote: On Sep 11, 2007, at 3:03 AM, Jesper Eskilson wrote: A related question: if I include an external project in my solution using include_external_msproject(Bar ../../Bar/Bar.vcproj) can I later refer to this project using target_link_libraries(Foo

Re: [CMake] Project being (unnecessarily) relinked

2007-09-12 Thread Jesper Eskilson
Jesper Eskilson wrote: Jesper Eskilson wrote: Mike Jackson wrote: On Sep 11, 2007, at 3:03 AM, Jesper Eskilson wrote: A related question: if I include an external project in my solution using include_external_msproject(Bar ../../Bar/Bar.vcproj) can I later refer to this project using

[CMake] Visual Studio 8

2007-09-18 Thread Jesper Eskilson
Hi, If I tell CMake to generate Visual Studio 8 project files, CMake requires that the right cl.exe can be found in PATH. More specifically, if the wrong cl.exe is found in PATH (say from Visual Studio 7), then CMake just pukes with some strange error. This confuses several of my users (who

[CMake] Weird error message

2007-10-05 Thread Jesper Eskilson
What does the following error message mean: Re-run cmake no build system arguments -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] environment variables and visual studio

2007-10-22 Thread Jesper Eskilson
Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be able to refer to things like

Re: [CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Jesper Eskilson
Stefan Buschmann wrote: Hi all, I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the .chm file is created correctly. But hhc.exe seems to return an error code, so the build has failed and my post-build

Re: [CMake] environment variables and visual studio

2007-10-23 Thread Jesper Eskilson
Sylvain Benner wrote: Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be able to

Re: [CMake] environment variables and visual studio

2007-10-23 Thread Jesper Eskilson
Bill Hoffman wrote: Jesper Eskilson wrote: Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like

[CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Hi people, Is there a way to disable the CMake cache, i.e. prevent CMake from generating or reading CMakeCache.txt? -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: Jesper Eskilson wrote: Hi people, Is there a way to disable the CMake cache, i.e. prevent CMake from generating or reading CMakeCache.txt? No. But, it might help more if you gave an explanation of what you are trying to do? The first problem is that the Visual

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: OK, so you want to disable the rerun of CMake, not the cache. That can be done with the CMAKE_SUPPRESS_REGENERATION variable. (set it to TRUE). Yes, I know how to use this variable. You should never have to clear out the cache. If I make a change in CMakeLists.txt

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: For this case, you could have something like this: # if SOME_PROGRAM has a value but the program has been moved # or removed from the system, then clear the cache entry # so that find_program will try again. if(SOME_PROGRAM AND NOT EXISTS ${SOME_PROGRAM}) set(SOME_PROGRAM

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: On Mittwoch, 31. Oktober 2007, Jesper Eskilson wrote: BTW: Are there any plans of fixing the broken regeneration for Visual Studio? Or at least documenting it as known problem? As it is now, the project files are regenerated but not reloaded, and there is no feedback

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: On 01.11.07 10:49:12, Jesper Eskilson wrote: In any case, the automatic regeneration of project files *does* *not* *work*, and my question was simply if there was a plan for either doing something about it (such as disabling it per default, which would be a sensible

Re: [CMake] can't pipe cl.exe in a custom command

2007-11-06 Thread Jesper Eskilson
Brandon Van Every wrote: I'm trying to grab the cl.exe banner so I can determine the MSVC version number. If cl.exe is in the path, then the following works at a Windows Command Prompt. This gives a short banner with the VC version number and copyright. cl /? 2 banner.txt But when I try to

Re: [CMake] disabling the cache

2007-11-08 Thread Jesper Eskilson
Bill Hoffman wrote: So, I did look at how to fix this some. I have a c# program that can force a running visual studio process to close and reload the solution it has. The idea would be to have cmake run this when cmake is run as part of the build. However, visual studio has a neat trick

Re: [CMake] Causing cmake to use stderr instead of stdout.

2007-11-19 Thread Jesper Eskilson
Dizzy wrote: On Monday 19 November 2007 18:37:02 Josef Karthauser wrote: Is it possible (with relative easy) to have cmake send all output to stderr instead of stdout? Well on a bourne shell I think you can do: cmake /path/to/sources 12 And it will run cmake redirecting fd 1 (stdout)

Re: [CMake] Using gmake with windows CL compiler?

2007-11-22 Thread Jesper Eskilson
Bill Hoffman wrote: You can also use the GNU make included here: http://unxutils.sourceforge.net/ This is really just a (small) set of unix tools running natively under Windows, using native Windows paths, etc. IMO this is the easiest way to get GNU make for Windows. Don't use the GNU

Re: [CMake] Re: setting other compile flag for 1 source file

2007-11-25 Thread Jesper Eskilson
Cees Wesseling wrote: Hi, It seems that that is frequently requested feature for gcc but alas it is not implemented for gcc. Hence I am looking for another option to disable optimization op a per file level. To specify file-specific compiler flags, use set_source_file_properties:

Re: [CMake] CMake with Lua Experiment

2007-11-28 Thread Jesper Eskilson
Brandon Van Every wrote: On Nov 28, 2007 2:47 AM, Pau Garcia i Quiles [EMAIL PROTECTED] wrote: As DSL based on Lua != Lua, assuming Kitware gets rid of documentation and bugs in the language might be too optimistic. Look for example at RHDL (http://rhdl.rubyforge.org/): it's a Ruby-based DSL

Re: [CMake] verbose ADD_CUSTOM_TARGET

2007-11-29 Thread Jesper Eskilson
James Bigler wrote: Is it possible to force a custom target to be verbose in makefile mode? I know I can turn it on or off for a given project, but I want to do for only a single target (a custom target, in fact). If you're using GNU make you can use target-specific variables:

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-04 Thread Jesper Eskilson
Olumide wrote: Hello - I'm a CMake newbie and I'd appreciate help creating a makefile *from* a Visual Studio .NET 2003 project/solution. I'm trying like to migrate my projects to eclipse and I hope CMake will help make that transition. Many thanks, - Olumide PS: I've already tried

Re: [CMake] Bug in EXECUTE_PROCESS?

2007-12-04 Thread Jesper Eskilson
Josef Karthauser wrote: Is this a bug? EXECUTE_PROCESS( COMMAND badcmd_that_doesnt_exist ERROR_VARIABLE ERROR ) IF(ERROR) MESSAGE(FATAL_ERROR Error! Command doesn’t exist.) ENDIF(ERROR) as the fatal_error is never raised.

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-05 Thread Jesper Eskilson
Olumide wrote: Bill Hoffman wrote: I'm trying to generate a Unix style (or NMake) Makefile that I can use to port my visual studio project to eclipse. I've tried running cmake on the project directory with the -GUnix Makefiles and -GNMake Makefiles option, but its not working -- I'm getting

Re: [CMake] question about clock skew detected. Your build may be incomplete

2007-12-10 Thread Jesper Eskilson
WangPing wrote: The date /time on my local workstation is correct, probably due to NFS system, Do you mean NTP? NFS does not keep your local computer time correct. the work directory is a NFS folder on other server, maybe the date/time on this server is incorrect? I can check it later.

Re: [CMake] Re: [Insight-users] question about clock skew detected. Your build may be incomplete

2007-12-10 Thread Jesper Eskilson
Karthik Krishnan wrote: Your system time is probably incorrect. One possible reason is that the timestamp of the files that make is compiling is newer than the current time. If the local time is correct and no network filesystems are involved, then I would guess that there is a file

Re: [CMake] Compilation speed with CMake/NMake combination, making it faster?

2007-12-12 Thread Jesper Eskilson
Eric Noulard wrote: 2007/12/11, Jason Stewart [EMAIL PROTECTED]: This is not scientific but I wrote a quick perl script to compile a simple library that we use (GCTPc). It consists of 70 C files with most of the files between 5K and 6K, a few are as large as 70K. The script just uses the time()

Re: [CMake] Re: Calling a dynamically created macro

2007-12-20 Thread Jesper Eskilson
Brandon Van Every wrote: On Dec 19, 2007 7:05 PM, David Cole [EMAIL PROTECTED] wrote: Now this thread is just plain cool. :-) Wait until I start building up a more advanced metaprogramming language from raw regular expressions. That idea occurred to me last night. I know regexes really

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-20 Thread Jesper Eskilson
Felix Obenhuber wrote: Dear CMake developer and users, I've encountered some probs with a an issue whitch already raised last year in the a post [1]. Mingw32-make (5.1.3) minds about a too long linker line. To be picky, mingw32-make (i.e. GNU make) doesn't mind at all, but cmd.exe might.

Re: [CMake] Re: Calling a dynamically created macro

2007-12-20 Thread Jesper Eskilson
Brandon Van Every wrote: On Dec 20, 2007 2:55 PM, Jesper Eskilson [EMAIL PROTECTED] wrote: Please let us know when you've implemented a webserver in CMake. ;-) It'll never happen. I can't stand the web. I'm a 3D / ASM / AI / game / build system guy. To me, the web has always been

Re: [CMake] mingw32 linker line exceeds win32 limitations

2007-12-21 Thread Jesper Eskilson
Felix Obenhuber wrote: On Do, 2007-12-20 at 21:02 +0100, Jesper Eskilson wrote: To be picky, mingw32-make (i.e. GNU make) doesn't mind at all, but cmd.exe might. (Mingw32-make will happily use any bourne-shell it can get its hands on.) You're absolutely right. The problem is, that we're

Re: [CMake] Re: Migration to subversion

2008-01-05 Thread Jesper Eskilson
Mike Jackson wrote: http://www.youtube.com/watch?v=4XpnKHJAok8 Git - straight from Linus.. Kinda long but interesting.. as long as you can get past Linus' personality. Here are my two cents: I actually held Linus opinion in rather high regard until he went berzerk on how bad Subversion is.

Re: [CMake] VS makefiles

2008-01-23 Thread Jesper Eskilson
Steven Van Ingelgem wrote: Hi, I was wondering why there are no VS makefiles? (run like nmake -f project.mak). I know you could run them from the command prompt with something like devenv ..., but that is not exactly the same ;-). Are you just being curious, or do you have a concrete

[CMake] movable (Visual Studio) project files

2008-01-24 Thread Jesper Eskilson
Hi all, I'm getting repeated questions from other developers at my company about why the project files CMake generates for Visual Studio aren't movable, so I sat down, created a minimal project, switched on the CMAKE_USE_RELATIVE_PATHS flag, and ran cmake. It turns out that there are

Re: [CMake] converting VS projects to CMake

2008-02-08 Thread Jesper Eskilson
Brandon Van Every wrote: Someone asked me the other day why CMake doesn't do this. I thought I gave him a reasonable answer, that it would be painful to do, and that CMake -- native is a much easier problem than native -- CMake. But I said I would ask here for other people's opinions on it. I

Re: [CMake] VMWare on SCons' future

2008-03-03 Thread Jesper Eskilson
Brandon Van Every wrote: On Mon, Mar 3, 2008 at 6:06 PM, Brandon Van Every [EMAIL PROTECTED] wrote: http://www.nabble.com/SCons-Future-Directions-and-Thoughts-td15176258.html you can learn tons about SCons from that thread. And there's one *really* spectacular public flame, if you

Re: [CMake] cyclic DLL dependencies

2008-03-13 Thread Jesper Eskilson
Michael Wild wrote: Does anyone of you have an idea how to solve the cyclic dependency problem in a more elegant way or how to recycle objects? Yep. Look here: http://msdn2.microsoft.com/en-us/library/kkt2hd12.aspx -- /Jesper ___ CMake mailing

[CMake] CMAKE_CONFIGURATION_TYPES

2008-04-07 Thread Jesper Eskilson
I've found a weird behavior which appears when trying to redefine the CMAKE_CONFIGURATION_TYPES variable under the following conditions: - The cmake.exe frontend is used - A Visual Studio generator is used - CMake 2.6 RC5, probably previous versions as well Given the following CMakeLists.txt

Re: [CMake] Control Object code destination?

2008-04-23 Thread Jesper Eskilson
Eric Torstenson wrote: Hi All, I'm compiling my application on 4 platforms (linux 32 bit, linux 64 bit, windows and mac) I would like to use my linux source tree for all of them without having to recompile the whole thing each time I change from one platform to the next. Is there a way to

Re: [CMake] avoid windows link warning: LNK4221

2008-05-15 Thread Jesper Eskilson
Phil Pellouchoud wrote: I have a *static library* that is giving the following warning: LNK4221 Is there a way to tell cmake to add /IGNORE:4221 Sorry, but there is no /IGNORE option to LIB. Afaik, LIB does not have an option for disabling warnings. If you find one, please let

Re: [CMake] Disable pretty output

2008-05-20 Thread Jesper Eskilson
Bill Hoffman wrote: David Sveningsson wrote: Hi, more newbie questions. The GNU Makefiles generated CMake has some nice colored output, progress etc. However I would like to disable this and see each command that is run (debugging purpose). There is no way to turn it off. You can do make

Re: [CMake] Disable pretty output

2008-05-20 Thread Jesper Eskilson
Bill Hoffman wrote: Feel free to create a feature request. Please describe how the replaceable utility would work. Done: http://public.kitware.com/Bug/view.php?id=7062 ___ CMake mailing list CMake@cmake.org

Re: [CMake] Disable pretty output

2008-05-21 Thread Jesper Eskilson
Bill Hoffman wrote: OK, thanks. I am not sure how -j N will be fixed by this, but the other stuff sounds good. I think we are sort of stuck with the jumbled output with parallel make. Unless you got really complicated with some sort of client server setup. I'm not sure how things work

[CMake] ctest and Visual Studio

2008-06-25 Thread Jesper Eskilson
I'm trying to add some tests to a project which is mainly built on Windows using Visual Studio. The problem I have is how to locate the binary used to run the test. The path to the binary depends on the Visual Studio macro $(ConfigurationName), so when I run ctest I get: $ vcbuild

[CMake] showing the exact compiler command line

2007-04-04 Thread Jesper Eskilson
Hi! Is there any way to get NMake Makefiles to show the exact compiler options used? If I do nmake VERBOSE=yes I only see that cl is executed like this: [...]/cl.exe @commandfile but the command file is removed when nmake exits. I'm having trouble setting CMAKE_CXX_FLAGS[_CONFIG] properly.

[CMake] using cl.exe with GNU make

2007-04-05 Thread Jesper Eskilson
What is the easiest way of using cl.exe with one of the GNU make based generators? I've tried cmake -G MinGW Makefiles -DCMAKE_C_COMPILER=cl.exe ... but could never really get it to work. -- /Jesper ___ CMake mailing list CMake@cmake.org

[CMake] makefile generator

2007-04-18 Thread Jesper Eskilson
Hi all, I'm curious about the design of the current makefile generator, and why it was designed the way it was. I've tried searching the mailing list archive, but without any greater success. One question pops to mind: why invoke use so many levels of recursive make? I counted at least three

Re: [CMake] makefile generator

2007-04-19 Thread Jesper Eskilson
2007/4/18, Bill Hoffman [EMAIL PROTECTED]: Jesper Eskilson wrote: Hi all, I'm curious about the design of the current makefile generator, and why it was designed the way it was. I've tried searching the mailing list archive, but without any greater success. One question pops to mind: why

Re: [CMake] makefile generator

2007-04-19 Thread Jesper Eskilson
2007/4/19, Bill Hoffman [EMAIL PROTECTED]: Jesper Eskilson wrote: Can you (or anyone else) elaborate on this? What features are abscent from other makes which are necessary to avoid recursive make calls? I've got a fair amount of experience of writing complex makefiles for gmake, but very

[CMake] failing post-build command

2007-05-02 Thread Jesper Eskilson
Hi all, If a post-build command fails, the associated target is not rebuilt (This holds at least for the NMake and Visual Studio generators). This is very annoying, as it makes it impossible to be sure that everything is in place unless I do a complete rebuild. Is there any way to fix this? --

[CMake] defining my own build type

2007-05-18 Thread Jesper Eskilson
Hi all, I tried following the instructions on the wiki on how to define my own build type (configuration), however the new build type (Develop) does not show up as a valid solution configuration in Visual Studio. Why is that? -- /Jesper ___ CMake

Re: [CMake] defining my own build type

2007-05-18 Thread Jesper Eskilson
2007/5/18, Joshua Jensen [EMAIL PROTECTED]: Jesper Eskilson wrote: Hi all, I tried following the instructions on the wiki on how to define my own build type (configuration), however the new build type (Develop) does not show up as a valid solution configuration in Visual Studio. Why

[CMake] install phase policies

2007-05-23 Thread Jesper Eskilson
Hi all, I'm wondering about how (large) CMake projects handle the install phase with respect to incremental building and debugging. Do people always install before running/testing/debugging, or is it common to be able to run/test/debug directly from the build output directory? I would ideally

Re: [CMake] visual studio converter?

2007-06-07 Thread Jesper Eskilson
2007/6/6, Sylvain Benner [EMAIL PROTECTED]: Jon W a écrit : Are there any tools available to convert Visual Studio files to cmakelists.txt? I have hundreds of vcproj files and this would help make the conversion to cmake easier. I don't know if there are some tools to do this. If you don't

[CMake] creating static library with references to other .lib files

2007-06-07 Thread Jesper Eskilson
Hi all, I would like to be able to create a static library on Windows which includes an import library to a DLL, so that users of the static library do not need to specify the import library. CMake does not allow me to do this. TARGET_LINK_LIBRARIES( FooLib BarLib ) does not work when

Re: [CMake] creating static library with references to other .lib files

2007-06-07 Thread Jesper Eskilson
2007/6/7, Brandon Van Every [EMAIL PROTECTED]: On 6/7/07, Jesper Eskilson [EMAIL PROTECTED] wrote: Hi all, I would like to be able to create a static library on Windows which includes an import library to a DLL, so that users of the static library do not need to specify the import library

Re: [CMake] creating static library with references to other .lib files

2007-06-12 Thread Jesper Eskilson
2007/6/7, Jesper Eskilson [EMAIL PROTECTED]: 2007/6/7, Brandon Van Every [EMAIL PROTECTED]: On 6/7/07, Jesper Eskilson [EMAIL PROTECTED] wrote: Hi all, I would like to be able to create a static library on Windows which includes an import library to a DLL, so that users

Re: [CMake] visual studio converter?

2007-06-12 Thread Jesper Eskilson
2007/6/12, Alexander Neundorf [EMAIL PROTECTED]: Hi Jesper, On Thursday 07 June 2007 08:38, Jesper Eskilson wrote: ... I've written a simple hack in Ruby which extracts the most vital parts of a .vcproj file and generates a corresponding CMakeLists.txt. There are a lot of things it doesn't

Re: [CMake] creating static library with references to other .lib files

2007-06-12 Thread Jesper Eskilson
2007/6/12, Brandon Van Every [EMAIL PROTECTED]: On some platforms, I bet the underlying linker AR can't even do it. I know it can't put static libraries inside of static libraries, thats' why everyone wants convenience libraries and I had to work on all that object file fakery. Possibly it

Fwd: [CMake] creating static library with references to other .lib files

2007-06-13 Thread Jesper Eskilson
Forgot to cc the list. -- Forwarded message -- From: Jesper Eskilson [EMAIL PROTECTED] Date: 2007-jun-13 19:56 Subject: Re: [CMake] creating static library with references to other .lib files To: Brandon Van Every [EMAIL PROTECTED] 2007/6/13, Brandon Van Every [EMAIL PROTECTED

Re: [CMake] creating static library with references to other .lib files

2007-06-14 Thread Jesper Eskilson
2007/6/14, Brandon Van Every [EMAIL PROTECTED]: On 6/13/07, Jesper Eskilson [EMAIL PROTECTED] wrote: 2007/6/13, Brandon Van Every [EMAIL PROTECTED]: But why don't you just ship your users a dynamic lib? As far as I know, there are no restrictions on dynamic libs including static libs

Re: [CMake] creating static library with references to other .lib files

2007-06-15 Thread Jesper Eskilson
2007/6/15, kitts [EMAIL PROTECTED]: On Thursday 14 Jun 2007 12:23:07 pm Jesper Eskilson wrote: Is it really impossible to pass an option to the linker when creating a static library? I have not gone through the whole thread but i think the function SET_TARGET_PROPERTIES(TARGET LINK_FLAGS XYZ

[CMake] directory structure on Windows

2007-06-15 Thread Jesper Eskilson
Hi, In my CMake installation on Windows, there are two directory with seemingly identical contents: c:/Program Files/CMake 2.4/share/CMake c:/Program Files/CMake 2.4/share/cmake-2.4 Could someone care to explain the difference? -- /Jesper ___ CMake

Re: [CMake] creating static library with references to other .lib files

2007-06-18 Thread Jesper Eskilson
2007/6/14, David Cole [EMAIL PROTECTED]: It's advanced CMake use, but you might want to have a look at overriding the CMake rule variable CMAKE_CXX_CREATE_STATIC_LIBRARY. (Or _C_ if it's C source code.) You should be able to add some linker flags in there, although they may apply to all static

[CMake] Including .h files in Visual Studio projects

2007-06-25 Thread Jesper Eskilson
Hi all, I'm trying to get our header files to show up in Visual Studio. I though I could just do add_library(foo foo.cpp foo.h) but Visual Studio tries to compile my header file as if it was a .cpp file. What am I doing wrong? -- /Jesper ___ CMake

[CMake] Improved FindSWIG.cmake

2007-06-29 Thread Jesper Eskilson
Hi, When can the improvements discussed in bug #4145 be expected to make it into a CMake release? -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: Including .h files in Visual Studio projects

2007-07-02 Thread Jesper Eskilson
2007/6/25, Jesper Eskilson [EMAIL PROTECTED]: Hi all, I'm trying to get our header files to show up in Visual Studio. I though I could just do add_library(foo foo.cpp foo.h) but Visual Studio tries to compile my header file as if it was a .cpp file. What am I doing wrong? -- /Jesper Since

Re: [CMake] library dependencies

2007-07-02 Thread Jesper Eskilson
2007/7/2, Alexander Neundorf [EMAIL PROTECTED]: On Monday 02 July 2007 08:05, Jesper Eskilson wrote: Hi all, Is there a way to extract the list of library dependencies specified by target_link_libraries for a target? I would like to be able to pass the list of libraries to an external