Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Michael Wild
+1 from me. I think it also would simplify FindPython.cmake if I remember correctly. Perhaps an option (e.g. NAMES_FIRST) could be be added to find_{library,path,file,program} to trigger the new behavior. This would maintain backward-compatibility and make things more flexible. Michael On

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
Naaa, the variables are simply called CMAKE_RUNTIME_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_ARCHIVE_OUTPUT_DIRECTORY. Aaron mixed them up with the respective target property names A few other things: - you can call INCLUDE_DIRECTORIES with more than one directory - NEVER use

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
frustrating me! So, file globs are evil? Not to get off subject, but care to expand on that a bit? Thanks for the help, I really appreciate it!! Aaron C. Meadows -Original Message- From: Michael Wild [mailto:them...@gmail.com] Sent: Monday, May 17, 2010 10:30 AM To: Tyler

Re: [CMake] How to make the target_link_libraries link different library in different build type.

2010-05-16 Thread Michael Wild
On 17. May, 2010, at 4:25 , SONGFY wrote: The target_link_libraries has any three tag to distinguish different build type:debug|optimized|general. But what I need is to specify different library in different build type, for example I have three custom build type: debug, release,

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Wild
On 14. May, 2010, at 7:02 , Thangaraj wrote: Hi All, I am trying to replace the clearmake build system with cmake for one of my corporate projects. This is a C++ based project and the interaction to database is being done using pro*C/C++ for which a meta compiler was provided by oracle.

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Wild
On 14. May, 2010, at 9:19 , Michael Hertling wrote: On 05/14/2010 08:05 AM, Michael Wild wrote: On 14. May, 2010, at 7:02 , Thangaraj wrote: Hi All, I am trying to replace the clearmake build system with cmake for one of my corporate projects. This is a C++ based project

Re: [CMake] SET_SOURCE_FILES_PROPERTIES different properties for same file, same library

2010-05-12 Thread Michael Wild
On 12. May, 2010, at 13:03 , Bryn Lloyd wrote: Hi, I would like to cmakeify the UMFPACK/AMD libraries by Timothy Davis. I need to compile the same source file, multiple times, with different flags/defines in order to link the resulting object files into one library. something like

Re: [CMake] Effort to create a new generator (tup)

2010-05-07 Thread Michael Wild
On 6. May, 2010, at 18:59 , Jed Brown wrote: On Thu, 6 May 2010 18:16:14 +0200, Michael Wild them...@gmail.com wrote: Another issue: How would one automatically rerun CMake when one of the input files to CMake changes? Of course, the build would then have to continue with the potentially

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
On 6. May, 2010, at 16:15 , Jed Brown wrote: On Thu, 06 May 2010 09:10:51 -0400, Bill Hoffman bill.hoff...@kitware.com wrote: OK, so aside from the fortran depend stuff being moved to generate time. I think the remaining questions are these: How would a large tup system be organized?

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
On 6. May, 2010, at 14:52 , Jed Brown wrote: On Thu, 06 May 2010 08:28:34 -0400, Bill Hoffman bill.hoff...@kitware.com wrote: The problem with fortran 90, is that you have to find out the depends to figure out the order in which files are built. It has a system where include like files

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
On 6. May, 2010, at 16:45 , Jed Brown wrote: On Thu, 6 May 2010 16:36:14 +0200, Michael Wild them...@gmail.com wrote: Looking at the manpage, it seems that CMake will need a Tupfile in every directory that is to contain object files: Tup would either need to add support for make install

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
On 6. May, 2010, at 16:55 , Jed Brown wrote: On Thu, 6 May 2010 16:42:13 +0200, Michael Wild them...@gmail.com wrote: Looks like the Fortran 90 issue can be solved with order-only inputs: a.f90 | gfortran -c -o %o %f | %f.o This line also produces a.mod. Ugh, yes. So this should

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
On 6. May, 2010, at 17:37 , Jed Brown wrote: On Thu, 6 May 2010 17:32:28 +0200, Michael Wild them...@gmail.com wrote: Ugh, yes. So this should be (does tup accept absolute source file paths?) /path/to/a.f90 | gfortran -c -o %o %f | %B.o %B.mod No problem on the source paths, but I think

Re: [CMake] Effort to create a new generator (tup)

2010-05-06 Thread Michael Wild
Another issue: How would one automatically rerun CMake when one of the input files to CMake changes? Of course, the build would then have to continue with the potentially modified Tupfile's... Michael ___ Powered by www.kitware.com Visit other

Re: [CMake] I can use add_custom_command in cmake

2010-05-05 Thread Michael Wild
On 5. May, 2010, at 10:20 , suds wrote: Hi there: I am new to cmake and I am using Kdevelop, actually , I am new to linux. In my project, there are some ice slice files which must be custom parsed and generate some cpp/h files. So I use the command below to tell cmake to call slice2cpp to

Re: [CMake] addprefix macro?

2010-05-05 Thread Michael Wild
On 5. May, 2010, at 16:14 , Marc Weber wrote: Hi, I'm new to cmake. I asked at #cmake how to prefix a string to a list of paths. I got the reply that I should use a foreach loop which worked. Can I abstract this pattern using a macro such as this? # prefix and suffix each element

Re: [CMake] addprefix macro?

2010-05-05 Thread Michael Wild
On 5. May, 2010, at 16:29 , Benoit Thomas wrote: On 2010-05-05 10:22, Michael Wild wrote: # prefix and suffix elements foreach(l ${list_name}) list(APPEND ${list_name}_TMP ${prefix}${l}${suffix} ) endforeach() You also have an error in your foreach, it should

Re: [CMake] CPack Mac OSX bundle uninstall

2010-05-05 Thread Michael Wild
On 5. May, 2010, at 16:22 , Werner Smekal wrote: Hi, On 5/5/10 4:00 PM, David Ojeda wrote: Hello cmakers! I am developing a C++ library and I am testing CMake with Cpack with the bundle generator for mac osx (BTW, great work! Very easy to use!). I have successfully generated a .dmg

Re: [CMake] Configure Mac OS X for 32-bit

2010-05-03 Thread Michael Wild
Ahh, you want a release build to be i386 AND ppc and your debug build to be just ppc? Use different binary trees then. Simple as that. If you're not satisfied with that, put a feature request for CMAKE_OSX_ARCHITECTURES_CONFIG in the bug tracker... Michael On 2. May, 2010, at 23:39 , Tron

Re: [CMake] How do I tell cmake not to create a console window?

2010-05-03 Thread Michael Wild
This won't do, it will produce a console-window when the executable is double-clicked. Windows is a PITA. Perhaps something like: add_executable(simple WIN32 simple.c) set_source_files_properties(simple.c PROPERTIES COMPILE_DEFINITIONS main=WinMain) Michael On 2. May, 2010, at 21:46 , Mike

[CMake] Mailing list footer

2010-05-03 Thread Michael Wild
Hi I really enjoy this mailing list, it is a very friendly place. But one thing that really annoys me at times is that the boilerplate footer doesn't get removed automagically in replies, leading to ridiculous stuff like this if people are too lazy to edit it out in their replies:

Re: [CMake] Mailing list footer

2010-05-03 Thread Michael Wild
On 3. May, 2010, at 15:14 , Bill Hoffman wrote: On 5/3/2010 2:58 AM, Michael Wild wrote: Hi I really enjoy this mailing list, it is a very friendly place. But one thing that really annoys me at times is that the boilerplate footer doesn't get removed automagically in replies, leading

Re: [CMake] Mailing list footer

2010-05-03 Thread Michael Wild
On 3. May, 2010, at 15:14 , Bill Hoffman wrote: On 5/3/2010 2:58 AM, Michael Wild wrote: Hi I really enjoy this mailing list, it is a very friendly place. But one thing that really annoys me at times is that the boilerplate footer doesn't get removed automagically in replies, leading

Re: [CMake] Configure Mac OS X for 32-bit

2010-05-03 Thread Michael Wild
Also, take a look at ccache to speed up rebuilds. Michael On 4. May, 2010, at 3:10 , Tron Thomas wrote: The concern with building a universal binary for debug is only the time involved in the build. It doesn't matter as much on a fast machine. However, I full rebuild on a slower machine

Re: [CMake] installation problem

2010-05-02 Thread Michael Wild
On Sun, May 2, 2010 at 3:40 AM, Zhuang Song zhuang.s...@gmail.com wrote: Hi! I am trying to install CMake in our Linux server. I follow the three steps: $ ./bootstrap; make; make install in running bootstrap, I got the following messages: ***

Re: [CMake] Configure Mac OS X for 32-bit

2010-05-02 Thread Michael Wild
Well, setting CMAKE_OSX_ARCHITECTURES to i386 AND ppc is going to get you a universal build, both of the architectures being 32-bit. So, what is it exactly that you want? Michael Wild On Sun, May 2, 2010 at 8:15 AM, Tron Thomas tron.tho...@verizon.net wrote: It looks like: set

Re: [CMake] Building for 2 platforms with 4 compilers

2010-04-30 Thread Michael Wild
On 30. Apr, 2010, at 11:16 , Kārlis Repsons wrote: Good day in here, I was trying to figure out how should CMake be used to automate building, which can happen on two or more platforms with some 4 compilers to be used in total, and should store the results in file tree like

Re: [CMake] Where do add_dependencies() that are not defines go?

2010-04-29 Thread Michael Wild
Considering that doing something like this: add_definitions(-m64) is not a very good idea since it is very compiler/platform specific, you might want to attack the whole problem from a different angle: if(CMAKE_COMPILER_IS_GNUC) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(_comp_flag -m64)

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-28 Thread Michael Wild
. In either case, make install still does everything. Regards, Michael Which is solved by this patch: http://cmake.org/Bug/view.php?id=10531 Michael Wild ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Is there any tools avaiable to translate VC project files(*.vcproj, *.sln) to CMakeLists.txt?

2010-04-27 Thread Michael Wild
On 27. Apr, 2010, at 10:38 , yaoyansi wrote: Hi, all I often add new code files to my VC project. Before release or subscribe to svn, I have to regenerate my VC project files with CMake, to make sure every thing is fine. It is not convenient, and take a lot of my time. So, could you tell

Re: [CMake] VS2010 problem with upper case CPP extension

2010-04-25 Thread Michael Wild
On 25. Apr, 2010, at 11:37 , Jarl Lindrud wrote: Hi, I've just run cmake 2.8.1, with the Visual Studio 10 generator, on a cmake project that I've previously been running the VS2008 generator on. There appears to be a problem with C++ source files that end with upper case CPP. They

Re: [CMake] Why is this custom command run twice?

2010-04-22 Thread Michael Wild
On 22. Apr, 2010, at 5:12 , aaron_wri...@selinc.com wrote: I'm trying to do something a little weird, and I'm almost there but not quite. I'm trying to generate a file and then run a command based on that file. I only want the command to run when the file changes and thus the generated

Re: [CMake] Tag Variable OBJECTS

2010-04-22 Thread Michael Wild
On 22. Apr, 2010, at 7:52 , Matthias Goesswein wrote: Am 21.04.2010 18:56, schrieb Alexander Neundorf: On Wednesday 21 April 2010, Matthias Goesswein wrote: Hello! My libarian-tool needs a flag before each object file: e.g. libarian -a file1.o -a file2.o -a file3.o library.a CMake

Re: [CMake] Install Export and include

2010-04-22 Thread Michael Wild
On 22. Apr, 2010, at 14:44 , Nicola Brisotto wrote: Hi, I'm building a library QXmppClient that export properties with INSTALL (EXPORT ...) How can I also export a variable with the include path of the library? In the executable project I use find_package(QXmppClient). The target

Re: [CMake] shell in Unix Makefiles

2010-04-22 Thread Michael Wild
On 22. Apr, 2010, at 15:29 , naryniecki wrote: Dnia 22 kwietnia 2010 15:04 Magnus Therning mag...@therning.org napisał(a): On Thu, Apr 22, 2010 at 10:23, naryniecki narynie...@o2.pl wrote: Hi, I know there is such possibility, but I have also few directories with which are

Re: [CMake] Append an option to CMAKE_C_FLAGS_DEBUG

2010-04-20 Thread Michael Wild
On 20. Apr, 2010, at 10:31 , Mathieu Dubois wrote: Hello, I'm a new CMake user under Linux and I like it. I have a simple question concerning CMAKE_C_FLAGS_DEBUG. I have made a library and I would like it to print more information when compiled when CMAKE_BUILD_TYPE=Debug. I think

Re: [CMake] [cmake-developers] pushing just a specific commit ?

2010-04-20 Thread Michael Wild
On 20. Apr, 2010, at 23:37 , Brad King wrote: Alexander Neundorf wrote: Hi, I have two small commits in my local cmake git repository. Both are working, but I'd like to push only of them right now. I haven't found out how to do this. That's what I tried: ... File .git/COMMIT_EDITMSG

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-19 Thread Michael Wild
On 19. Apr, 2010, at 22:07 , Benoit Thomas wrote: Hello, I'm using an external library which is already compiled. I have wrapped the library in a MyLib.cmake and use it in cmake as an imported library. It works fine, but since the include line uses relative path, it changes from projects

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-17 Thread Michael Wild
On 17. Apr, 2010, at 12:59 , David Cole wrote: On Sat, Apr 17, 2010 at 1:02 AM, Clinton Stimpson clin...@elemtech.comwrote: On Apr 16, 2010, at 9:13 AM, David Cole wrote: On Fri, Apr 16, 2010 at 11:03 AM, Michael Wild them...@gmail.com wrote: The way BundleUtilities

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Michael Wild
The way BundleUtilities (that is, GetPrerequisites is actually doing the work here) is designed so far is to check for run-time dependencies using otool and similar utilities. However, CMake can't possibly detect that qt_menu.nib is required since this file is loaded dynamically at run-time,

Re: [CMake] Xcode generator linker flags

2010-04-14 Thread Michael Wild
On 14. Jan, 2010, at 16:46 , Michael Wild wrote: On 14. Jan, 2010, at 16:18 , Michael Wild wrote: Hi all I think that the Xcode generate is buggy as the linker flags are not inherited from the compile flags as they do in the Unix Makefile generator. Is this known/fixed/intentional

[CMake] Vala module

2010-04-13 Thread Michael Wild
Hi all Just created http://www.cmake.org/Bug/view.php?id=10546 with patches to add Vala support to CMake. Michael ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] HOW DO I: Build VTK with CMake/ExternalProject_add against Qt with Cocoa on OS X?

2010-04-13 Thread Michael Wild
On 13. Apr, 2010, at 16:19 , kent williams wrote: I've descended into a confusing morass of complicated CMake macros, and I need help getting out! The situation is this: I didn't have much trouble building VTK with QT as long as I stuck with Carbon. Now I'm running into some serious

Re: [CMake] Two issues...

2010-04-13 Thread Michael Wild
On 14. Apr, 2010, at 24:57 , J Decker wrote: [...] Also, there's no way to just get the list of target outputs that a executable or library was linked with? TARGET_LINK_LIBRARIES( ${PROJECT_NAME} libxyz ) I tried to use GET_TARGET_PROPERTY(LIBS2 ${proj}

Re: [CMake] using install() with EXCLUDE_FROM_ALL

2010-04-09 Thread Michael Wild
On 8. Apr, 2010, at 16:40 , David Cole wrote: [...] Why not use the COMPONENT feature of the various install command signatures to separate your installables into components...? Then you can run: cd binary_dir cmake -D COMPONENT=MyComponent -P cmake_install.cmake and that will

Re: [CMake] Building CMake in parallel problem

2010-04-09 Thread Michael Wild
:50 +0200, Michael Wild wrote: Hi all While creating a formula for Homebrew on Mac OS X 10.6.2 I happened across a problem when I tried to build CMake 2.8.1 in parallel (-j2) and directly invoked the install target where libcmsys.a and libCMakeLib.a get built twice. I.e. I did the following

Re: [CMake] Making it easier for downstreams to use my library

2010-04-09 Thread Michael Wild
On 9. Apr, 2010, at 9:53 , Stephen Kelly wrote: Hi, I've just tagged and tarballed a release candidate of Grantlee version 0.1.0. Grantlee is a Free Software string template system written in Qt and using CMake for its build system.[1] Most of my CMake knowledge is about writing

Re: [CMake] Problem after upgrading to OSX 10.6.3!

2010-04-09 Thread Michael Wild
On 31. Mar, 2010, at 21:22 , Bill Hoffman wrote: Bradley Lowekamp wrote: Hello, The down arrow (and other arrow keys) is no longer working after I patched to OSX 10.6.3 with ccmake. This is very weird! Other applications seems fine. I have tried 3 upgraded machines, all failing to get

Re: [CMake] Making it easier for downstreams to use my library

2010-04-09 Thread Michael Wild
On 9. Apr, 2010, at 20:20 , Alexander Neundorf wrote: [...] which will create IMPORTED targets with the same names as in the Grantlee project. So you can then set the variables set(Grantlee_CORE_LIBRARIES grantlee_core ${QT_QTCORE_LIBRARIES}) set(Grantlee_GUI_LIBRARIES grantlee_gui

Re: [CMake] using install() with EXCLUDE_FROM_ALL

2010-04-09 Thread Michael Wild
On 9. Apr, 2010, at 13:14 , David Cole wrote: On Fri, Apr 9, 2010 at 2:08 AM, Michael Wild them...@gmail.com wrote: [...] It would be nice if CMake created component-wise install targets. E.g. it would be very nice to have: make install-man make install-bin make install-shlibs make

Re: [CMake] [PATCH] STYLE: Fix doc typos in cmSourceFile.cxx

2010-04-09 Thread Michael Wild
On Saturday 03 April 2010, them...@gmail.com wrote: From: Michael Wild them...@users.sourceforge.net Signed-off-by: Michael Wild them...@users.sourceforge.net Thanks, committed (and pushed). (except the last one, this actually looked ok IMO). Btw. is there a way to patch an email

[CMake] Building CMake in parallel problem

2010-04-08 Thread Michael Wild
Hi all While creating a formula for Homebrew on Mac OS X 10.6.2 I happened across a problem when I tried to build CMake 2.8.1 in parallel (-j2) and directly invoked the install target where libcmsys.a and libCMakeLib.a get built twice. I.e. I did the following: $ path/to/source/bootstrap

Re: [CMake] Problem linking dynamic libraries on MacOSX

2010-04-07 Thread Michael Wild
On 7. Apr, 2010, at 12:40 , Frank Stappers wrote: Hello, Currently, I have a problem with linking to dynlib outside a bundle. Let me explain: We have a toolset that contains both unix-tools (applications without the .app suffix) and bundles (applications that have the .app suffix). After

Re: [CMake] add_custom_command weirdness

2010-04-07 Thread Michael Wild
On 7. Apr, 2010, at 13:26 , Christoph Höger wrote: Hi all, here comes the testcase: project(cmakeBug) set(src ${PROJECT_SOURCE_DIR}/src) set(inc ${PROJECT_SOURCE_DIR}/inc) add_custom_command(OUTPUT ${inc}/test.h ${inc}/test2.h ${src}/test.c COMMAND echo //foo

Re: [CMake] Batch Files in CTest (instead executables)

2010-03-31 Thread Michael Wild
On 31. Mar, 2010, at 9:59 , David Graf wrote: Hello Everybody I want to execute batch files in CTest tests (to set the correct paths to the PATH environment variables before executing an executable). Unfortunately, that does not work smoothly. The reason is the error handling. If an

Re: [CMake] Batch Files in CTest (instead executables)

2010-03-31 Thread Michael Wild
On 31. Mar, 2010, at 11:47 , David Graf wrote: Hello Michael Instead of checking the exit status, you could have CTest check the output for success or failure. Have a look at SET_TESTS_PROPERTIES. Unfortunately, that doesn't work in our case. We are running a testdriver for the result

Re: [CMake] ADD_CUSTOM_COMMAND and Visual Studio 2010

2010-03-31 Thread Michael Wild
On 31. Mar, 2010, at 12:07 , elizabeta petreska wrote: Hello I am using cmake 2.8 to generate Visual Studio 2010 solution files. I have the following cmakelists.txt : set(PROJECT_NAME Test2) PROJECT(${PROJECT_NAME}) FILE(GLOB Test_SRCS main.cpp )

Re: [CMake] ADD_CUSTOM_COMMAND and Visual Studio 2010

2010-03-31 Thread Michael Wild
at 1:27 PM, Michael Wild them...@gmail.com wrote: On 31. Mar, 2010, at 12:07 , elizabeta petreska wrote: Hello I am using cmake 2.8 to generate Visual Studio 2010 solution files. I have the following cmakelists.txt : set(PROJECT_NAME Test2) PROJECT(${PROJECT_NAME}) FILE(GLOB

Re: [CMake] ADD_CUSTOM_COMMAND and Visual Studio 2010

2010-03-31 Thread Michael Wild
, Mar 31, 2010 at 2:09 PM, Michael Wild them...@gmail.com wrote: CC-ing back to the mailing list... Sorry, I don't know why this fails and I don't have VS-2010 around. What happens if you use a different generator? Michael On 31. Mar, 2010, at 14:05 , elizabeta petreska wrote: Hello

Re: [CMake] Batch Files in CTest (instead executables)

2010-03-31 Thread Michael Wild
if ctest is executed with the -V option. Therefore, it is impossible to echo SUCCESS or FAILED. David On Mar 31, 2010, at 1:23 PM, Michael Wild wrote: On 31. Mar, 2010, at 11:47 , David Graf wrote: Hello Michael Instead of checking the exit status, you could have CTest check

Re: [CMake] Annoyances with cmake vs qmake

2010-03-31 Thread Michael Wild
On 31. Mar, 2010, at 15:29 , Ruben Van Boxem wrote: 2010/3/28 Hendrik Sattler p...@hendrik-sattler.de [...] No, because when compiling differently for Debug and Release, you have all object files twice. Thus you would enforce one more level of subfolders even for those that only want

Re: [CMake] Problem after upgrading to OSX 10.6.3!

2010-03-31 Thread Michael Wild
On 31. Mar, 2010, at 21:22 , Bill Hoffman wrote: Bradley Lowekamp wrote: Hello, The down arrow (and other arrow keys) is no longer working after I patched to OSX 10.6.3 with ccmake. This is very weird! Other applications seems fine. I have tried 3 upgraded machines, all failing to get

Re: [CMake] Using CMake/CPack for code provenance

2010-03-30 Thread Michael Wild
On 30. Mar, 2010, at 13:38 , Biddiscombe, John A. wrote: We have a project where the data generated is very large and too costly to store permanently, so we'd like to be able to a) Tag the source code used when the run is initiated using the SCM (svn/git etc) b)

Re: [CMake] find_file with wildcards

2010-03-30 Thread Michael Wild
On 30. Mar, 2010, at 15:45 , David Cole wrote: Not yet. Good feature request, though. On Mon, Mar 29, 2010 at 2:59 PM, James Bigler jamesbig...@gmail.com wrote: I've looked at the documentation for find_file, and it seems like I have to specify all possible permutations of the name

Re: [CMake] add_custom_command weirdness

2010-03-30 Thread Michael Wild
Also make sure that all paths are absolute. Relative paths sometimes have strange effects in custom commands. Michael On 30. Mar, 2010, at 19:04 , David Cole wrote: That would happen if hcparser.y were changed. Does that file also change? Is it generated? 2010/3/30 Christoph Höger

Re: [CMake] Is there really any cmake support?

2010-03-29 Thread Michael Wild
On 28. Mar, 2010, at 18:09 , Fred Fred wrote: [snip] What I do not understand is why would cmake use non ASCII characters? Since my path is in ASCII (at least I hope that a mkdir command with non-accentuated characters does not generate non ASCII paths!) and I checked all the paths in

Re: [CMake] find_library and mac os x SDKs

2010-03-28 Thread Michael Wild
On 28. Mar, 2010, at 3:25 , Simmons, Aaron wrote: What I don't understand is this: Why do you want to force the SDK? Shouldn't this be the worry of the person doing the build? If I download some open-source software and then build it for myself, I don't want to be forced in using the

Re: [CMake] Using target_link_libraries

2010-03-28 Thread Michael Wild
On 28. Mar, 2010, at 1:57 , Colin Michael Diesh wrote: Hey, I was trying to use the TARGET_LINK_LIBRARIES in a CMakeLists.txt file but the linking doesn't end up working. I am using cygwin and CMake 2.6.4 Currently, I am having trouble with the OpenGL libraries. It links GLUT but not the

Re: [CMake] Is there really any cmake support?

2010-03-28 Thread Michael Wild
On 28. Mar, 2010, at 12:37 , Eric Noulard wrote: 2010/3/28 Fred Fred stan1...@hotmail.fr: This list seems not to be really active You are kidding right? Did you check the past 3 years archive ? Two years worth of messages in my mailbox: 16422... and I did not receive any help since I

Re: [CMake] find_library and mac os x SDKs

2010-03-27 Thread Michael Wild
On 27. Mar, 2010, at 16:53 , Simmons, Aaron wrote: It is a common misconception that one needs to use the 10.4 SDK to create an executable that is compatible with 10.4. This is not so. In most cases, you're right. However, we're linking to the iconv library. If we don't specify the

Re: [CMake] rename of target on install

2010-03-26 Thread Michael Wild
On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote: Hi all, Is there a way for me to rename the executable during the install? I'm using the same CMakeList.txt to build several versions and I'd like to install them to different directories but with the version number stripped off of the

Re: [CMake] rename of target on install

2010-03-26 Thread Michael Wild
On 26. Mar, 2010, at 9:23 , Micha Renner wrote: Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild: On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote: Hi all, Is there a way for me to rename the executable during the install? I'm using the same CMakeList.txt to build several

Re: [CMake] How to manipulate each string in a list?

2010-03-25 Thread Michael Wild
Hi Jin On 25. Mar, 2010, at 9:06 , Jin Huang wrote: Dear all, I am a newbie of cmake, and have googled some times for this question. I'm sorry if it's a naive question. The typical operation is to make replacement on each string in a list. In GNU Make, I can use the following code

Re: [CMake] scope of set_source_files_properties?

2010-03-23 Thread Michael Wild
by this. On Tue, Mar 23, 2010 at 8:43 AM, Michael Wild them...@gmail.com wrote: On 23. Mar, 2010, at 13:33 , Brad King wrote: Simmons, Aaron wrote: Am I missing something? The code is below... Top-level CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(test) set

Re: [CMake] static library from several subdirectories

2010-03-22 Thread Michael Wild
On 22. Mar, 2010, at 15:22 , Verweij, Arjen wrote: Hi, From: Michael Wild [mailto:them...@gmail.com] You have to call ADD_SOURCES for all your sources BEFORE you do the ADD_LIBRARY call. I am already doing this, but since the files I was adding to the library didn't exist, the call

Re: [CMake] How to build and link Externa Project with exported target

2010-03-19 Thread Michael Wild
Nicola Brisotto On Wed, Mar 17, 2010 at 8:44 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Wednesday 17 March 2010, Michael Wild wrote: On 17. Mar, 2010, at 15:43 , Luigi Calori wrote: ... Is this ExternalProject_Add feature really used/developed? I find it really nice

Re: [CMake] static library from several subdirectories

2010-03-19 Thread Michael Wild
On 19. Mar, 2010, at 16:27 , Verweij, Arjen wrote: Hi, This is a bit length, sorry. -Original Message- From: Michael Wild [mailto:them...@gmail.com] What am I missing? I'm trying again with my simple a/liba.c and b/b/libb.c setup, but this time I start out with liba.cr

Re: [CMake] Proper way to set a binary folder inside of the Debug folder for Visual Studio

2010-03-18 Thread Michael Wild
CMAKE_CFG_INTDIR is what you want. It expands to a variable reference which gets expanded at build-time by the respective multi-config IDE (i.e. Debug, Release, etc.) Michael On 18. Mar, 2010, at 21:39 , Mike Jackson wrote: I am working on some CMake Code where I would like some libraries to

Re: [CMake] static library from several subdirectories

2010-03-17 Thread Michael Wild
On 16. Mar, 2010, at 22:30 , Verweij, Arjen wrote: Hi Markus, I have tested Michael's suggestion. It works wonders for combining source files into a single lib, regardless of the directory levels. For instance, I tested with: CMakeLists.txt a/CMakeLists.txt a/liba.c

Re: [CMake] static library from several subdirectories

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:01 , Verweij, Arjen wrote: Hi, From: Michael Wild [mailto:them...@gmail.com] I'd recommend to change the add_sources function to do all the preprocessing and then only add the products (.f, .f90, .c etc.) files to the list. You can do the preprocessing like

Re: [CMake] How to build and link Externa Project with exported target

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:17 , Nicola Brisotto wrote: Hi! I'm building a project that require a 3rd party library libqxmpp. Both project uses cmake I want to build libqxmpp with ExternalProject_add, this the code I use: ExternalProject_add( libqxmpp #no download, i'm using

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:58 , David Doria wrote: If I do something like this: INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../../include) I'd expect ../../include to be appended to the current INCLUDE_DIRECTORIES. So then when I do this: MESSAGE(INCLUDE_DIRECTORIES:

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:34 , David Doria wrote: The syntax is: INCLUDE_DIRECTORIES(../../include) This will append to the already existing include directories. Michael Ok. And then how do I see the list of everything that has been added to INCLUDE_DIRECTORIES? Thanks, David

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:45 , David Doria wrote: This is a read-only directory property: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_dir:INCLUDE_DIRECTORIES Michael That's ok, all I want to do is read it. That's why I thought it would just be:

Re: [CMake] How to build and link Externa Project with exported target

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:37 , Luigi Calori wrote: Hi Michael and Nicola, I'm in a similar situation as I' m trying to build up a cmake based dependency builder for OpenSceneGraph based projects: So I' m really interested in any best practice advice Michael Wild wrote: On 17. Mar, 2010

Re: [CMake] Include paths not being searched?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 15:32 , David Doria wrote: The reason I was looking to check the contents of INCLUDE_DIRECTORIES was that when I build my project I am getting errors like this: /usr/include/fstream:40:19: error: istream: No such file or directory The output of this:

Re: [CMake] Include paths not being searched?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 16:06 , David Doria wrote: Those files should not need to be on the include path since your compiler should know how to find them (after all, they belong to the c++ standard library). Do you happen to use -nostdinc or -nostdinc++ in your compile flags? Also, what is

Re: [CMake] COMMAND does not accept standard method of splitting stderr and stdout results

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 18:42 , Alan W. Irwin wrote: According to Unix in a Nutshell, the bourne and korn shells use the following method of splitting stderr and stdout into two separate files. (cmd f1) 2f2 I have checked that the parentheses work for bash, although they are not

Re: [CMake] COMMAND does not accept standard method of splitting stderr and stdout results

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 21:46 , Alan W. Irwin wrote: On 2010-03-17 20:21+0100 Michael Wild wrote: Thing is, cmake is neither bash nor ksh, else it would be called cash ;-) True, but COMMAND does execute a command on the command line, and on the Unix side of things that must involve

Re: [CMake] libgcc_s_dw2-1.dll not found

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 22:13 , Oli Glaser wrote: Hi again, I should have said previously that I pointed cmake to the qmake.exe but then I got another error saying libgcc_s_dw2-1.dll not found, although it is on my computer. How do I point cmake to this? What am I doing wrong? I know I'm

Re: [CMake] static library from several subdirectories

2010-03-16 Thread Michael Wild
On 16. Mar, 2010, at 9:54 , Verweij, Arjen wrote: Hi, Hopefully I'm misunderstanding you, since otherwise the list would contain close to 4000 files. Well, I don't see a real problem with this. If this makes your files too long, just separate the setting of these source-variables into

Re: [CMake] static library from several subdirectories

2010-03-16 Thread Michael Wild
On 16. Mar, 2010, at 17:42 , Markus Raab wrote: Verweij, Arjen wrote: I'm looking for a cmake-way to create a static library from several subdirectories. I have exactly the same problem, please share if you get a good solution. What about collecting all files in a cache variable? Then

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:07 , Brad King wrote: Anyway, this patch should fix it. Please test. Thanks, -Brad Modules/CMakeDetermineCompilerId.cmake |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Modules/CMakeDetermineCompilerId.cmake

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:37 , Brad King wrote: Michael Wild wrote: Won't that fail for compiler-installations with spaces in the path (admittedly a bad idea, but on Windows probably not that unlikely)? By the time the new code is reached we've already split the arguments from the compiler

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:59 , Brad King wrote: Michael Wild wrote: On 15. Mar, 2010, at 14:37 , Brad King wrote: using the PROGRAM/PROGRAM_ARGS option of get_filename_component() which already accounts for spaces in the path. It uses an algorithm similar to what the Windows command prompt

Re: [CMake] Problem with CHECK_FUNCTION_EXISTS and strcasecmp

2010-03-14 Thread Michael Wild
On 03/13/2010 01:03 PM, Mateusz Loskot wrote: Michael Surette wrote: I am updating the CMake build files for a cross-platform project. One of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS. If it's not found the code generates its own function by that name. This

Re: [CMake] Static Modules

2010-03-12 Thread Michael Wild
On 12. Mar, 2010, at 11:42 , Markus Raab wrote: Hello! Michael Wild wrote: IMHO it would be simpler and safer to have a function which collects all the file names, adds them to a global property and then allows you to compile a static library from that. E.g (completely untested): Yeah

Re: [CMake] Static Modules

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 8:56 , Markus Raab wrote: Hi! Ryan Pavlik wrote: get_target_properties() with the property SOURCES then for each value you get back there, do a get_source_file_properties() for LOCATION and add all such locations to a new list, then create a target with that source

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: Hi The problem: From a shared CMakeLists.txt i get the following error when defining a library target. Policy

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:41 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote:

<    3   4   5   6   7   8   9   10   11   12   >