Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-28 Thread Michael Wild
On 27. Dec, 2009, at 23:30 , Pau Garcia i Quiles wrote: On Sun, Dec 27, 2009 at 10:16 PM, Michael Wild them...@gmail.com wrote: On 27. Dec, 2009, at 20:41 , Pau Garcia i Quiles wrote: On Sun, Dec 27, 2009 at 10:59 AM, Michael Wild them...@gmail.com wrote: On 26. Dec, 2009, at 17:53

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-28 Thread Michael Wild
On 28. Dec, 2009, at 12:40 , Pau Garcia i Quiles wrote: That sounds doable to me. However, you'd need a mechanism to express the same preference when calling find_package and then have find_package communicate that to find_library. Not sure how fine-grained the control should be for

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-27 Thread Michael Wild
On 26. Dec, 2009, at 17:53 , Pau Garcia i Quiles wrote: Hello, I think this has already been discussed and the answer is negative but still: when I do target_link_libraries to an external library (for instance, my application needs to link to sqlite), is it possible to tell CMake to link

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-27 Thread Michael Wild
On 27. Dec, 2009, at 20:41 , Pau Garcia i Quiles wrote: On Sun, Dec 27, 2009 at 10:59 AM, Michael Wild them...@gmail.com wrote: On 26. Dec, 2009, at 17:53 , Pau Garcia i Quiles wrote: Hello, I think this has already been discussed and the answer is negative but still: when I do

Re: [CMake] Simple CMakeLists.txt file not working with cmake version 2.6

2009-12-24 Thread Michael Wild
On 24. Dec, 2009, at 9:26 , Mahendra Ladhe wrote: Hi, shown below is a simplified and relevant part of my CMakeLists.txt file. add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sample.bash DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sample.bash COMMAND cp ARGS -f

Re: [CMake] Simple CMakeLists.txt file not working with cmake version 2.6

2009-12-24 Thread Michael Wild
that will work on both cmake versions. Thanks, Mahendra --- On Thu, 24/12/09, Michael Wild them...@gmail.com wrote: From: Michael Wild them...@gmail.com Subject: Re: [CMake] Simple CMakeLists.txt file not working with cmake version 2.6 To: Mahendra Ladhe lml...@yahoo.com Cc: cmake

Re: [CMake] try using the -03 option to gcc

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 9:22 , Water Lin wrote: I am trying to use the -03 option to gcc. But after I use add_definitions(-03) in CMakeLists.txt file and generate the Makefile, I make the project and gcc provides me a info: --- c++:

Re: [CMake] [Q] LINK_INTERFACE_LIBRARIES and the like

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 9:52 , Marcel Loose wrote: On Tue, 2009-12-22 at 16:22 +0100, Michael Wild wrote: On 22. Dec, 2009, at 15:52 , Marcel Loose wrote: Hi all, After reading, re-reading, and re-re-reading the manual, I still don't really get the concept of LINK_INTERFACE_LIBRARIES

Re: [CMake] try using the -03 option to gcc

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 9:56 , Water Lin wrote: Michael Wild them...@gmail.com writes: On 23. Dec, 2009, at 9:22 , Water Lin wrote: I am trying to use the -03 option to gcc. But after I use add_definitions(-03) in CMakeLists.txt file

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 12:08 , Marcel Loose wrote: Hi all, I suggested this in the quite long thread third party library dependencies, but it may have been overlooked. Hence, I started a new thread. Upon (re)reading the Mandriva page http://wiki.mandriva.com/en/Overlinking, I was

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 13:28 , Marcel Loose wrote: On Wed, 2009-12-23 at 13:09 +0100, Michael Wild wrote: On 23. Dec, 2009, at 12:08 , Marcel Loose wrote: Hi all, I suggested this in the quite long thread third party library dependencies, but it may have been overlooked. Hence, I started

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 14:36 , Alexander Neundorf wrote: On Wednesday 23 December 2009, Marcel Loose wrote: Hi all, I suggested this in the quite long thread third party library dependencies, but it may have been overlooked. Hence, I started a new thread. Upon (re)reading the Mandriva

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 15:03 , Alexander Neundorf wrote: On Wednesday 23 December 2009, Michael Wild wrote: On 23. Dec, 2009, at 14:36 , Alexander Neundorf wrote: On Wednesday 23 December 2009, Marcel Loose wrote: Hi all, I suggested this in the quite long thread third party library

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 15:14 , Marcel Loose wrote: On Wed, 2009-12-23 at 14:12 +0100, Michael Wild wrote: On 23. Dec, 2009, at 13:28 , Marcel Loose wrote: On Wed, 2009-12-23 at 13:09 +0100, Michael Wild wrote: On 23. Dec, 2009, at 12:08 , Marcel Loose wrote: Hi all, I suggested

Re: [CMake] Proposal: extra option PRIVATE for target_link_libraries

2009-12-23 Thread Michael Wild
On 23. Dec, 2009, at 16:04 , Marcel Loose wrote: On Wed, 2009-12-23 at 15:19 +0100, Michael Wild wrote: On 23. Dec, 2009, at 15:14 , Marcel Loose wrote: On Wed, 2009-12-23 at 14:12 +0100, Michael Wild wrote: On 23. Dec, 2009, at 13:28 , Marcel Loose wrote: On Wed, 2009-12-23 at 13:09

Re: [CMake] Build only what you need in third party libs

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 14:13 , David Cole wrote: On Tue, Dec 22, 2009 at 7:58 AM, David Wolfe dwo...@fifthsally.com wrote: On 12/22/2009 7:11 AM, David Wolfe wrote: Most of our external dependencies aren't even built using CMake, so 'CMake-ifying'

Re: [CMake] Build only what you need in third party libs

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 15:50 , David Cole wrote: On Tue, Dec 22, 2009 at 9:37 AM, Troy D. Straszheim t...@resophonic.comwrote: David Cole david.c...@kitware.com writes: On Tue, Dec 22, 2009 at 7:58 AM, David Wolfe dwo...@fifthsally.com wrote: On 12/22/2009 7:11 AM, David Wolfe

Re: [CMake] [Q] LINK_INTERFACE_LIBRARIES and the like

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 15:52 , Marcel Loose wrote: Hi all, After reading, re-reading, and re-re-reading the manual, I still don't really get the concept of LINK_INTERFACE_LIBRARIES, IMPORTED_LINK_DEPENDENT_LIBRARIES, and IMPORTED_LINK_INTERFACE_LIBRARIES. Is this mostly Windows-specific,

Re: [CMake] Build only what you need in third party libs

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 16:22 , David Cole wrote: snip That's exactly my point: if the dependent project is the calling project (i.e. the one that calls ExternalProject_Add), you have to use error-prone ADD_LIBRARY(name type IMPORTED) calls with according invocations of

Re: [CMake] Build only what you need in third party libs

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 16:52 , David Cole wrote: On Tue, Dec 22, 2009 at 10:35 AM, Michael Wild them...@gmail.com wrote: On 22. Dec, 2009, at 16:22 , David Cole wrote: snip That's exactly my point: if the dependent project is the calling project (i.e. the one that calls

Re: [CMake] Build only what you need in third party libs

2009-12-22 Thread Michael Wild
On 22. Dec, 2009, at 17:29 , Brian Davis wrote: snip There will never be an easy way to pull external projects directly into a calling project because the external things are not even guaranteed to be on disk yet at configure time of said calling project. Yeah, kind of a chicken-egg

Re: [CMake] third party library dependencies

2009-12-21 Thread Michael Wild
On 21. Dec, 2009, at 12:17 , Marcel Loose wrote: On Fri, 2009-12-18 at 08:54 -0800, Jed Brown wrote: On Fri, 18 Dec 2009 10:19:05 +0100, Marcel Loose lo...@astron.nl wrote: Hi Roman, Not in a portable way. I'm not too familiar with Windows, but on Linux you can do this when libA is a

Re: [CMake] third party library dependencies

2009-12-21 Thread Michael Wild
On 21. Dec, 2009, at 14:16 , Marcel Loose wrote: On Mon, 2009-12-21 at 13:32 +0100, Michael Wild wrote: On 21. Dec, 2009, at 12:17 , Marcel Loose wrote: On Fri, 2009-12-18 at 08:54 -0800, Jed Brown wrote: On Fri, 18 Dec 2009 10:19:05 +0100, Marcel Loose lo...@astron.nl wrote: Hi Roman

Re: [CMake] Fortran - Can’t find *.mod

2009-12-21 Thread Michael Wild
On 21. Dec, 2009, at 20:52 , C. Meissa wrote: Hello List, I’m moving my fortran project to cmake… I have a src directory containing 3 dirs: main mod1 mod2 The main program in “main” is to be linked against the libs in “mod1” and “mod2”. Additionally “mod2” does need “mod1”,

[CMake] ExternalProject built libraries and dependencies

2009-12-19 Thread Michael Wild
Hi all I use ExternalProject to optionally build some dependencies as static libraries. However, since they are statically linked, I don't install them. Unfortunately, CMake includes these libraries in the export set through the IMPORTED_LINK_INTERFACE_LIBRARIES property. Worse, it references

Re: [CMake] ExternalProject built libraries and dependencies

2009-12-19 Thread Michael Wild
AM, Michael Wild wrote: Hi all I use ExternalProject to optionally build some dependencies as static libraries. However, since they are statically linked, I don't install them. Unfortunately, CMake includes these libraries in the export set through the IMPORTED_LINK_INTERFACE_LIBRARIES

Re: [CMake] FIND_PACKAGE does not work

2009-12-18 Thread Michael Wild
On 18. Dec, 2009, at 13:06 , Adolfo Rodríguez Tsouroukdissian wrote: On Fri, Dec 18, 2009 at 12:57 PM, Müller Michael michael.muel...@dkfz-heidelberg.de wrote: Hi all, i am trying to include OpenCV 2.0 (which is using CMake now) in our project. Therefore, I call FIND_PACKAGE(OpenCV 2

Re: [CMake] ExternalProject() Question

2009-12-17 Thread Michael Wild
On 16. Dec, 2009, at 20:35 , Michael Jackson wrote: I am intrigued by the ExternalProject feature of CMake 2.8. One question that I have after reading through the Oct 09 Kitware Source is this. If I do a make clean or rebuild are all the ExternalProjects also cleaned/rebuilt? I could make

Re: [CMake] ExternalProject() Question

2009-12-17 Thread Michael Wild
On 17. Dec, 2009, at 15:01 , David Cole wrote: On Thu, Dec 17, 2009 at 3:20 AM, Michael Wild them...@gmail.com wrote: On 16. Dec, 2009, at 20:35 , Michael Jackson wrote: I am intrigued by the ExternalProject feature of CMake 2.8. One question that I have after reading through the Oct

Re: [CMake] ExternalProject() Question

2009-12-17 Thread Michael Wild
On 17. Dec, 2009, at 17:34 , David Cole wrote: On Thu, Dec 17, 2009 at 10:53 AM, Michael Wild them...@gmail.com wrote: On 17. Dec, 2009, at 15:01 , David Cole wrote: On Thu, Dec 17, 2009 at 3:20 AM, Michael Wild them...@gmail.com wrote: On 16. Dec, 2009, at 20:35 , Michael Jackson

Re: [CMake] Acces macro/functions to subfolders

2009-12-16 Thread Michael Wild
On 16. Dec, 2009, at 18:28 , Tyler Roscoe wrote: On Wed, Dec 16, 2009 at 05:55:54PM +0100, Olivier Pierard wrote: In order to be able to use a macro/function from several sub-folders, I would like to define it only once in the main CMakeLists.txt. However, after some basic tests, It seems

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Wild
Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect it is something like /Users/smekal/Library/Frameworks/SDL.framework/SDL: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (compatibility version

Re: [CMake] CPack DragNDrop generator documentation

2009-12-15 Thread Michael Wild
Bump On 27. Oct, 2009, at 14:28 , Michael Wild wrote: Hi all The CPack DragNDrop generator is completely undocumented. I created http://www.cmake.org/Bug/view.php?id=9782 to report this and attached a patch which adds some documentation for the variables used in the generator. I hope I

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Wild
On 15. Dec, 2009, at 23:46 , Glenn Hughes wrote: I think the SDL developers are just being a bit too slick. They are setting up SDL for Xcode development where typically you would link to the SDL and then have a Copy Files Phase where you copy the framework into the Application Bundle

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Michael Wild
On 14. Dec, 2009, at 14:29 , Marcel Loose wrote: On Mon, 2009-12-14 at 08:23 -0500, Bill Lorensen wrote: http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links OK, that puts us back at square one. Why is it that CMake cannot use Windows shortcuts as an alternative to Unix

Re: [CMake] Mac OSX GUI

2009-12-13 Thread Michael Wild
You need to have Qt installed. http://qt.nokia.com/products If you only want to build Qt software (i.e. don't care about the IDE), make sure you only download the library package (163MB) and not the SDK (444MB). Michael On 13. Dec, 2009, at 17:09 , Steven Wilson wrote: Do you have to do

Re: [CMake] cmake -E create_symlink for Windows

2009-12-12 Thread Michael Wild
On 12. Dec, 2009, at 17:42 , Alan W. Irwin wrote: On 2009-12-12 09:44-0500 David Cole wrote: On Fri, Dec 11, 2009 at 10:04 AM, Michael Wild them...@gmail.com wrote: Bummer. What where they THINKING??? (if at all...). It seems to me that M$ just CAN'T get it right. No matter how many times

Re: [CMake] cmake -E create_symlink for Windows

2009-12-11 Thread Michael Wild
On 11. Dec, 2009, at 14:27 , Marcel Loose wrote: Hi all, I was browsing the CMake sources for a problem I was facing with the creation of symlinks (on Unix that is) and I noticed that the SystemTools::CreateSymlink function simply returns false when building on a Windows platform.

Re: [CMake] cmake -E create_symlink for Windows

2009-12-11 Thread Michael Wild
On 11. Dec, 2009, at 15:35 , Hendrik Sattler wrote: Zitat von Michael Wild them...@gmail.com: On 11. Dec, 2009, at 15:17 , Hendrik Sattler wrote: Zitat von Michael Wild them...@gmail.com: On 11. Dec, 2009, at 14:27 , Marcel Loose wrote: I was browsing the CMake sources for a problem I

Re: [CMake] Embedding up-to-date version info in built library

2009-12-11 Thread Michael Wild
On 11. Dec, 2009, at 15:53 , Kolja Waschk wrote: Hi, I know that similar questions have been posted before, but as far as I have been able to follow, no real solution was ever given. The goal is to embed revision information in a C++ library mylib. I already managed to use

Re: [CMake] Embedding up-to-date version info in built library

2009-12-11 Thread Michael Wild
On 11. Dec, 2009, at 16:58 , Kolja Waschk wrote: Hi, thanks, One question: Why do you need a add_custom_command with all those dependencies? Why does version.cc depend on all the source and header files? What do you write in your version.cc file? Is it something like Beside the SVN

Re: [CMake] newbee on cmake/installing problem

2009-12-10 Thread Michael Wild
Just to be very clear and to avoid misunderstandings, I'm going to walk you through the steps of installing CMake. Comments will be prefixed by a # sign. # create a download directory mkdir -p ~/Downloads # change directory to the downloads location cd ~/Downloads # do the actual download (or

Re: [CMake] Newie's question: Multiple applications with one common kernel

2009-12-08 Thread Michael Wild
On 8. Dec, 2009, at 9:27 , Matthias Moeller wrote: Tyler Roscoe wrote: On Mon, Dec 07, 2009 at 05:53:37PM +0100, Matthias Moeller wrote: Our project has the following structure: root/applications (Applications by different users) applications/app1 applications/app2

Re: [CMake] Copying cmake generated files to another machine

2009-12-07 Thread Michael Wild
On 7. Dec, 2009, at 18:31 , steve naroff wrote: On Dec 7, 2009, at 9:17 AM, Eric Noulard wrote: 2009/12/7 steve naroff snar...@apple.com: As Eric pointed out, you must add CMake to your compiler build chain. It's one more tool (and with no third-party dependencies), like the C

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-06 Thread Michael Wild
On 5. Dec, 2009, at 17:12 , Clinton Stimpson wrote: It would be nice to have a function allowing one to override/extend the default choice (which AFAIK is determined by asking otool about link-dependencies). Perhaps something like this: set_external_framework_properties(

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-05 Thread Michael Wild
On 5. Dec, 2009, at 14:47 , Mike Jackson wrote: Probably what is going to happen is there will be special case copies from frameworks into bundles. In this case, copying the qt_menu.nib and any qt.conf is probably specific to QtGui.framework. At this point I there is probably 2 things that

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-05 Thread Michael Wild
that... ;-) _ Mike Jackson mike.jack...@bluequartz.net On Sat, Dec 5, 2009 at 9:11 AM, Michael Wild them...@gmail.com wrote: On 5. Dec, 2009, at 14:47 , Mike Jackson wrote: Probably what is going to happen is there will be special case copies from frameworks into bundles

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-04 Thread Michael Wild
Everything except the headers, that is... Michael On 4. Dec, 2009, at 21:04 , David Cole wrote: Sounds like we need the whole framework now instead of just the libraries from inside them... Does one of you have the time to create a bug report for this...? Thx, David On Fri, Dec 4, 2009

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-04 Thread Michael Wild
Yes, that is the only reason. They are bulky and useless, at least in the case of CMake. Come to think of it, however, it could be useful if CMake offered the possibility to install the various parts as different COMPONENTS. E.g., for ParaView it would make sense to install the Qt headers

Re: [CMake] install(EXPORT ...)

2009-12-02 Thread Michael Wild
On 2. Dec, 2009, at 10:09 , Biddiscombe, John A. wrote: The command INSTALL( TARGETS ${PROJ_LIB_NAME} EXPORT proj-targets LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin ) Works very nicely, when 'make install' is invoked, is there a way of achieving a

Re: [CMake] install(EXPORT ...)

2009-12-02 Thread Michael Wild
I just found out that in the new CMake-2.8 there is also export(PACKAGE package_name) which adds your build-tree to the user's package database and helps CMake finding build-trees when using find_package(package_name) from another project. However, this still requires that you create an

Re: [CMake] parallel builds (ctest_build() ) for dashboards ?

2009-12-02 Thread Michael Wild
On 2. Dec, 2009, at 16:36 , Sean McBride wrote: On 12/2/09 10:10 AM, Bill Hoffman said: Well, as Dave mentioned the -j flag only works with gmake. It does not work with Xcode, as you tried here: :) http://www.cdash.org/CDash/viewNotes.php?buildid=484307 Which is why nothing built for

Re: [CMake] Why doesn't cmake generate the file?

2009-12-02 Thread Michael Wild
On 2. Dec, 2009, at 20:22 , Tyler Roscoe wrote: On Wed, Dec 02, 2009 at 07:58:43PM +0100, Jörg Förstner wrote: I thought CMake would find the custom command and generate the file gen.h Instead an error occurs, this is the output: -- Configuring done CMake Error in libfoo.so/CMakeLists.txt:

[CMake] file(DOWNLOAD ...) SSL support

2009-11-30 Thread Michael Wild
Hi all Are there any plans to enable SSL-support in the CMake-included CURL library? Michael ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] file(DOWNLOAD ...) SSL support

2009-11-30 Thread Michael Wild
On 30. Nov, 2009, at 16:33 , Bill Hoffman wrote: Michael Wild wrote: Hi all Are there any plans to enable SSL-support in the CMake-included CURL library? The CMake binaries will never ship with ssl (due to export control issues). However, you can build CMake yourself and turn

Re: [CMake] Is there a way to omit relative path from the name of the comilation output file (OBJECT)?

2009-11-30 Thread Michael Wild
Apart from me not liking this setup (those external sources should probably be a separate project and be compiled as a library which then is imported) you could use CONFIGURE_FILE(/long/path/to/file ${CMAKE_BINARY_DIR}/file COPYONLY) and then pass ${CMAKE_BINARY_DIR}/file to the

Re: [CMake] Is there a way to omit relative path from the name of the comilation output file (OBJECT)?

2009-11-30 Thread Michael Wild
takes time/bandwidth, requires frequent updates and raises chances for inconsistency). With the same rational we'd like to avoid copying of sources to ${CMAKE_BINARY_DIR}. Kind Regards, Alex Tarnopolsky -Original Message- From: Michael Wild [mailto:them...@gmail.com] Sent: Monday

Re: [CMake] file(DOWNLOAD ...) SSL support

2009-11-30 Thread Michael Wild
On 30. Nov, 2009, at 17:52 , Bill Hoffman wrote: Michael Wild wrote: That's not a real solution for me, since I intend to distribute my source code and people won't be happy if their download fails. And replacing the DLL/so/dylib isn't an option either, because this requires too much

Re: [CMake] ExternalProject questions

2009-11-27 Thread Michael Wild
was considering making a feature request but since Michael has mentioned it here, I thought I would add my 2 cents worth. Michael Wild wrote: Hi all I have a few questions concerning the new ExternalProject module (which, by the way is fantastic and really simplifies my code). 1. From my

[CMake] ExternalProject questions

2009-11-26 Thread Michael Wild
Hi all I have a few questions concerning the new ExternalProject module (which, by the way is fantastic and really simplifies my code). 1. From my understanding of the ExternalProject_Add documentation, shouldn't INSTALL_DIR be passed on the configure-line as -

Re: [CMake] problem with add_custom command

2009-11-25 Thread Michael Wild
? Curious. Brian On 25. Mar, 2009, at 10:28, ankit jain wrote: 2009/3/25 Michael Wild themiwi-re5jqeeqqe8avxtiumw...@public.gmane.orgthemiwi-re5jqeeqqe8avxtiumw...@public.gmane.org On 25. Mar, 2009, at 9:33, ankit jain wrote: 2009/3/25 Michael Wild themiwi-re5jqeeqqe8avxtiumw

Re: [CMake] problem with add_custom command

2009-11-25 Thread Michael Wild
Brian. Michael Wild wrote: Works fine for me on my Mac. Can't help with Windows 7 (or rather, 6.1, but then the marketing guys at MS probably figured to round that up to 7... ;-)) as I don't have access to it. $ mkdir test $ echo Hello World test/hello.txt $ cmake -E tar cvf test.tar test

Re: [CMake] cmake deletes cache when source patch contains symlink to complier directory

2009-11-25 Thread Michael Wild
Hi Russ I can't claim to fully understand your explanation, but I tried your steps on Mac OS X 10.6 and CMake-2.8 and I can reproduce this error. Really, really weird stuff! Bet it took you quite some time, effort and nerves to track this one down... Michael On 25. Nov, 2009, at 17:35

Re: [CMake] Double Substitution in IF Statement

2009-11-19 Thread Michael Wild
No, it should be empty because he wants to test whether HELLO is in LIBS. But inside the IF statement, the ${VALUE} that evaluates to LIB (a member of LIBS) gets then expanded again to HELLO. Quite funny actually. However, reading the manpage closely only the left-hand value of STREQUAL

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 3:07 , David Manura wrote: On Wed, Nov 18, 2009 at 4:58 PM, Alexander Neundorf wrote: On Wednesday 18 November 2009, David Manura wrote: That would be better than nothing, though it does have a limitation in that you cannot wrap a function more than once. Not sure.

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 15:06 , Jed Brown wrote: Michael Wild wrote: Not sure I'd like that... Instead of being more expressive, I think this would be very confusing. This is not a some magic beast coming out of functional languages. In fact, it's pretty hard to find a language that can't

Re: [CMake] functions as first class objects

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 15:44 , Jed Brown wrote: Michael Wild wrote: On 19. Nov, 2009, at 15:06 , Jed Brown wrote: Michael Wild wrote: Not sure I'd like that... Instead of being more expressive, I think this would be very confusing. This is not a some magic beast coming out

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Wild
On 19. Nov, 2009, at 16:24 , Michael Jackson wrote: So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? Is there a tutorial somewhere? Where

Re: [CMake] Fortran project problem (static linking)

2009-11-18 Thread Michael Wild
remember where is wrong exactly. Maybe I shouldn't write target_link_libraries(core libutil.a) but target_link_libraries (core util ). Thanks again! DONG Li 2009/11/18 Michael Wild them...@gmail.com On 18. Nov, 2009, at 6:18 , 董理 wrote: Michael Wild 写道: On 17. Nov, 2009, at 4:31 , DONG

Re: [CMake] Fortran project problem (static linking)

2009-11-17 Thread Michael Wild
On 17. Nov, 2009, at 4:31 , DONG Li wrote: Hi all, I am trying to use CMake as my Fortran project build tool, it is a wonderful project guard!. But a annoying problem comes up. I searched all around the internet, but no easy document for me : (. Since I want to use static-linking, the

Re: [CMake] CMake and Preprocessing

2009-11-17 Thread Michael Wild
On 17. Nov, 2009, at 19:13 , Anastasia Shchupak wrote: Hello, I'm porting multiplatform fortran project build system to CMake. Due to OpenMP code, I need to use FPP preprocessor always (before compiling by any compiler, because some fortran compilers use just CPP as preprocessor, that

Re: [CMake] Fortran project problem (static linking)

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 6:18 , 董理 wrote: Michael Wild 写道: On 17. Nov, 2009, at 4:31 , DONG Li wrote: Hi all, I am trying to use CMake as my Fortran project build tool, it is a wonderful project guard!. But a annoying problem comes up. I searched all around the internet, but no easy

Re: [CMake] functions as first class objects

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 7:25 , David Manura wrote: On Fri, Nov 13, 2009 at 3:58 AM, Michael Wild wrote: Something like this just came up recently: http://www.cmake.org/pipermail/cmake/2009-October/032725.html That would be better than nothing, though it does have a limitation in that you

Re: [CMake] Testing the size of long throws error when more than one OS X Arch is passed

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 24:55 , Michael Jackson wrote: On Nov 17, 2009, at 6:45 PM, Sean McBride wrote: On 11/17/09 5:57 PM, Michael Jackson said: cmake -DCMAKE_OSX_ARCHITECTURES='x86_64;i386' ../ Will throw the following error: -- Check size of size_t CMake Error at

Re: [CMake] Simple example of IMPILICIT_DEPENDS?

2009-11-16 Thread Michael Wild
On 16. Nov, 2009, at 16:43 , lists_r...@lavabit.com wrote: Hello, Does anyone have a reasonably simple example of using add_custom_command with IMPLICIT_DEPENDS that invokes the CXX scanner? The two examples I found via Google do not lead themselves to easy simplification. My goal is to

Re: [CMake] CMAKE_SHARED_LIBRARY_PREFIX is blank on msvc?

2009-11-15 Thread Michael Wild
On 15. Nov, 2009, at 1:01 , David Manura wrote: CMAKE_SHARED_LIBRARY_PREFIX is blank on MSVC, unlike on most platforms (MinGW included): $ (cd cmake-2.8.0/Modules/Platform/ grep -re CMAKE_SHARED_LIBRARY_PREFIX .) ./AIX.cmake:SET(CMAKE_SHARED_LIBRARY_PREFIX lib) # lib

Re: [CMake] functions as first class objects

2009-11-13 Thread Michael Wild
Something like this just came up recently: http://www.cmake.org/pipermail/cmake/2009-October/032725.html But probably it would be better to patch the subproject... Michael On 13. Nov, 2009, at 5:33 , David Manura wrote: Is there a way to redefine a built-in function but still keep around a

Re: [CMake] OpenMP compiler flag questoin

2009-11-13 Thread Michael Wild
On 13. Nov, 2009, at 14:21 , Johannes Stallkamp wrote: Hello, if I use FIND_PACKAGE( OpenMP ) I get the variables OpenMP_C_FLAGS and OpenMP_CXX_FLAGS correctly set to /openmp for VC2005. Is it correct behaviour that these are not automatically added to the CMAKE_CXX_FLAGS_[RELEASE|DEBUG]

Re: [CMake] Finding the Temp directory code

2009-11-13 Thread Michael Wild
On 14. Nov, 2009, at 24:55 , Michael Jackson wrote: Does anyone have any CMake code to find the designated temp folder location for each platform? Was thinking this might be in CMake somewhere but I did not seem to find anything. Thanks I think on WIN32 its TEMP and TMP and on all UNIX

Re: [CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Michael Wild
set(... PARENT_SCOPE) Michael On 9. Nov, 2009, at 11:11 , Olivier Pierard wrote: Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the add_subdirectory command. Modification is well taken into account in

[CMake] CMakeFindFrameworks.cmake and FindPythonLibs.cmake broken on Mac OS X

2009-11-06 Thread Michael Wild
Hi all while trying to compile some program which links agains the Python libraries on my Mac OS X 10.6 box for 10.5, I noticed that there's something wrong with both CMakeFindFrameworks.cmake and FindPythonLibs.cmake. CMakeFindFrameworks.cmake does not search the SDK root in

Re: [CMake] Bug in 2.8 branch (Head branch also)

2009-11-03 Thread Michael Wild
On 3. Nov, 2009, at 2:09 , Steven Wilson wrote: Consider the following: foo.cpp #include iostream int main() { std::cout foo std::endl; return 0; } CMakeLists.txt cmake_minimum_required(VERSION 2.6.4) add_executable(foo foo.cpp) set(BUILD_FOO ON PARENT_SCOPE) With CMake built

Re: [CMake] Reruning cmake and environment variables

2009-11-01 Thread Michael Wild
On 1. Nov, 2009, at 16:27 , elizabeta petreska wrote: Hello I am using Windows ansd Cmake 2.6. I am invoking CMake from command window which has set some environment variables. The environment variables are visible only the during the lifetime of the command window. I am using the

Re: [CMake] CMake 2.8.0 RC 4 ready for testing!

2009-10-29 Thread Michael Wild
On 29. Oct, 2009, at 13:25 , Bill Hoffman wrote: Timi Tuohenmaa wrote: Hi, I wish that fix for bug #9687 should be in final 2.8.0 too (at least it is not mentioned in this). Without it the whole Codeblocks with NMake is too much broken. I am pretty sure that fix is in the release, but I did

Re: [CMake] CMake 2.8.0 RC 4 ready for testing!

2009-10-29 Thread Michael Wild
On 29. Oct, 2009, at 13:35 , Bill Hoffman wrote: Mathieu Malaterre wrote: # ok we found jni.h, now derive other location from it: get_filename_component(jni_path ${JAVA_INCLUDE_PATH} PATH) FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h ${jni_path} ${jni_path}/win32 ${jni_path}/linux

Re: [CMake] Read multiple path names from filesystem

2009-10-29 Thread Michael Wild
On 29. Oct, 2009, at 11:11 , Tim Just wrote: Hi, I'm using CMake 2.8 rc3 on Ubuntu to build a modular and extensible project. Therefore I have a directory called 'modules' beneath the project root. In this folder may be an undefined number of subfolders containing module sources and

Re: [CMake] Read multiple path names from filesystem

2009-10-29 Thread Michael Wild
On 29. Oct, 2009, at 15:11 , Tim Just wrote: Michael Wild wrote: On 29. Oct, 2009, at 11:11 , Tim Just wrote: Hi, I'm using CMake 2.8 rc3 on Ubuntu to build a modular and extensible project. Therefore I have a directory called 'modules' beneath the project root. In this folder may

[CMake] CMAKE_OSX_SYSROOT and find_XXX

2009-10-29 Thread Michael Wild
Hi all I'm a bit struggling with using CMAKE_OSX_SYSROOT. The problem is that find_library and cohorts do not consider CMAKE_OSX_SYSROOT at all, thus reporting bogus paths. I think that find_library, find_path and find_file (did I forget any?) should honour CMAKE_OSX_SYSROOT and treat it

Re: [CMake] CMAKE_OSX_SYSROOT and find_XXX

2009-10-29 Thread Michael Wild
On 29. Oct, 2009, at 15:39 , Sean McBride wrote: On 10/29/09 3:30 PM, Michael Wild said: I'm a bit struggling with using CMAKE_OSX_SYSROOT. The problem is that find_library and cohorts do not consider CMAKE_OSX_SYSROOT at all, thus reporting bogus paths. I think that find_library

[CMake] CPack DragNDrop generator documentation

2009-10-27 Thread Michael Wild
Hi all The CPack DragNDrop generator is completely undocumented. I created http://www.cmake.org/Bug/view.php?id=9782 to report this and attached a patch which adds some documentation for the variables used in the generator. I hope I didn't misunderstand the meaning of the variables.

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-26 Thread Michael Wild
Usually I use cvs update -dARP which IMHO should probably be the default, because that's what people (i.e. me) expect from an update. Are there any plans for CMake (and other Kitware projects) to switch over to a more contemporary VCS, such as git, hg or bzr (in the order of my

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-26 Thread Michael Wild
On 26.09.2009, at 19:33, Eric Noulard eric.noul...@gmail.com wrote: 2009/9/26 Michael Wild them...@gmail.com: Usually I use cvs update -dARP which IMHO should probably be the default, because that's what people (i.e. me) expect from an update. -dRP are ok even if I think R is not needed

Re: [CMake] Use FIND_LIBRARY to search link for an executable?

2009-09-18 Thread Michael Wild
On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you have to link your plugin against this executable. Now I've the problem

Re: [CMake] Use FIND_LIBRARY to search link for an executable?

2009-09-18 Thread Michael Wild
On 18. Sep, 2009, at 9:15, Christian Ehrlicher wrote: Von: Michael Wild On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you

Re: [CMake] add_subdirectory and build directory

2009-09-12 Thread Michael Wild
On 11. Sep, 2009, at 16:45, Bill Hoffman wrote: That's NOT what add_subdirectory is made for. It is intended for adding a sub-directory in the source tree. So, if your directory structure looks like this (i.e. B is a sub-project of A) A/CMakeLists.txt A/B/CMakeLists.txt things are

Re: [CMake] add_subdirectory and build directory

2009-09-11 Thread Michael Wild
On 11. Sep, 2009, at 15:12, Pierre-Julien Villoud wrote: Hi everyone, After unsuccessfully looking for an answer on Google, I contact you. I have a question regarding the use of add_subdirectory. When a project A is depending on a project B, I add the following in A's CMakeLists.txt :

Re: [CMake] triggering rebuild on windows

2009-09-01 Thread Michael Wild
On 1. Sep, 2009, at 4:12, j s wrote: According to Microsoft, the math macros are not part of standard C/C+ +: http://msdn.microsoft.com/en-us/library/4hwaceh6(VS.80).aspx I'm not going to quibble with them on that point, as they were nice enough to provided them with: _USE_MATH_DEFINES

Re: [CMake] dependency in custom command?

2009-09-01 Thread Michael Wild
On 1. Sep, 2009, at 6:47, King, Steven R wrote: In case it's useful, here's a macro to copy an arbitrary file form the source directory to the binary directory. The dependencies work such that the file is not copied if the destination is up-to-date. This is working fine for me, but

Re: [CMake] dependency in custom command?

2009-08-31 Thread Michael Wild
On 31. Aug, 2009, at 7:08, King, Steven R wrote: Can't you put all executables and shared libraries in one directory, so they are all local to each other? In the top level CMakeLists.txt file just add SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

Re: [CMake] add_definitions affects rc.exe call

2009-08-31 Thread Michael Wild
On 31. Aug, 2009, at 11:42, Nicolas Desprès wrote: Hi all, I'm using cmake-2.6.4 to build a project using Visual C++ 2005 and the Unix Makefile generator. At the beginning of my main CMakeLists.txt I have something like that: add_definitions(/Zc:wchar_t- /nologo /wd4996 /wd4290) Everything

<    5   6   7   8   9   10   11   12   >