Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
On Mon, Jul 05, 2010 at 10:47:32AM -0400, John Drescher wrote: > What is wrong with different build folders for each compiler / ide? I'm interested in an answer to this question as well. For me, the biggest thing is that it's what VS developers are accustomed to. I've been educating it out of the

Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
On Mon, Jul 05, 2010 at 01:31:41PM +0200, Mark Van Peteghem wrote: > I see, thanks. I intend to write a Python script that adds the extra > platform solution, because we really need that. Visual Studio and > Code::Blocks project files are XML files, so it shouldn't be too hard. If possible, I woul

[CMake] find_path() and directories

2010-07-06 Thread Clinton Stimpson
Can find_path() be used to find a directory containing a directory or directories? For example: find_path(MY_DIR NAMES subdir) It seems to work on Linux, but the docs say it is for finding directories containing "files." Thanks, Clint ___ Powered by

Re: [CMake] contribution: FindMySQL.cmake

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 21:01 , Arnaud GELAS wrote: > Hi guys, > > We have been for our own projects the following file to find mysql packages, > and I would like to contribute it to the community. > > Note: it works fine for MySQL 5.1 on Windows (tested on XP and 7), Mac > (tested on 10.5 and 10

[CMake] contribution: FindMySQL.cmake

2010-07-06 Thread Arnaud GELAS
Hi guys, We have been for our own projects the following file to find mysql packages, and I would like to contribute it to the community. Note: it works fine for MySQL 5.1 on Windows (tested on XP and 7), Mac (tested on 10.5 and 10.6) and Linux. I guess it could be improved for other version

[CMake] problems with creating static library on aix

2010-07-06 Thread Verweij, Arjen
Hi, We're experiencing two problems with creating static libraries through cmake on our AIX system. The first one is that a cmake based build environment will come up with 64-bit XCOFF, but ar and friends won't play ball unless you add -X64. I suppose this issue has just been overlooked and is

Re: [CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
On Tue, Jul 6, 2010 at 12:50 PM, John Drescher wrote: > I was using 2.8.1 and previous cmake versions for a long time without > any problems. Also 2.8.2 works for the same project on 64 bin xp. > > CMake Error: CMake was unable to find a build program corresponding to > "Visual Studio 8 2005".  CM

[CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
I was using 2.8.1 and previous cmake versions for a long time without any problems. Also 2.8.2 works for the same project on 64 bin xp. CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 8 2005". CMAKE_MAKE_PROGRAM is not set. You probably need to select a diff

Re: [CMake] [PATCH] bootstrap: Detect known C/C++ compiler toolchains

2010-07-06 Thread Brad King
On 07/03/2010 12:18 AM, Todd Gamblin wrote: > This patch works on dawndev (BG/P FEN) at LLNL. Great, thanks for testing. I've published it to 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2ad2c2d7 -Brad ___ Powered by www.kitware.com Vis

Re: [CMake] Is this page outdated? http://www.cmake.org/Wiki/BuildingWinDLL

2010-07-06 Thread David Cole
If you want the constructor exported, you should export the class (which exports all of its public API), not a single function within the class. Also, if you export a class, all of its parent classes should also be exported. On Tue, Jul 6, 2010 at 7:56 AM, Fred Fred wrote: > Because I tried i

Re: [CMake] Is this page outdated? http://www.cmake.org/Wiki/BuildingWinDLL

2010-07-06 Thread Michael Jackson
The wiki page you cite is still relevant for cmake/visual studio with shared libraries. You do NOT need this line in your CMakeLists.txt file: ADD_LIBRARY(vtkFiniteDifference SHARED vtkFiniteDifference.cxx) The ADD_PARAVIEW_PLUGIN should do that for you. class MyStaticFunctionClass { public

[CMake] Is this page outdated? http://www.cmake.org/Wiki/BuildingWinDLL

2010-07-06 Thread Fred Fred
Because I tried it but it did not work: - the first error is due to this line: static MYLIB_EXPORT vtkFiniteDifference *New(); that is I followed the advice at the end of the cmake page: If you have some static functions then you will need something like the following: class MyStatic

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-07-06 Thread Aeschbacher, Fabrice
Hi, I think the PROJECT_GROUP patch could be really nice for many of us: http://public.kitware.com/Bug/view.php?id=3796 Best regards, Fabrice Aeschbacher Von: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] Im Auftrag von David Cole Gesendet: Montag, 5

Re: [CMake] Recursive list append

2010-07-06 Thread Diablo 666
> CMakeLists.txt: > ### > set(some_list val1 val2 val3) > add_subdirectory(subdir) > message(STATUS "some_list = ${some_list}") > > subdir/CMakeLists.txt: > ## > # append in local scope > list(APPEND some_list val4 val5 val6) > # set in parent scope > set(some_list

Re: [CMake] cpack -C

2010-07-06 Thread Bo Thorsen
Den 01-07-2010 15:39, Bo Thorsen skrev: When I give an argument to -C, can this be used in the INSTALL commands? Not possible :( I have added a feature request here: http://public.kitware.com/Bug/view.php?id=10940 Bo Thorsen. Monty Program AB. -- MariaDB: MySQL replacement Community develop

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-07-06 Thread Bo Thorsen
Den 05-07-2010 20:31, David Cole skrev: If you have a particular issue that you think should be fixed for inclusion in 2.8.3, please bring it up now. Ideally, each issue will be discussed as needed on the mailing list to come to any consensus about what should be done to fix it, and then an entry

Re: [CMake] Recursive list append

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 10:41 , Diablo 666 wrote: > > If I use SET with PARENT_SCOPE, wouldn't this delete old entries? Say I have > more than one subdirectory. Can I append entries from both subdirectories > this way? CMakeLists.txt: ### set(some_list val1 val2 val3) add_subdirector

Re: [CMake] Recursive list append

2010-07-06 Thread Diablo 666
If I use SET with PARENT_SCOPE, wouldn't this delete old entries? Say I have more than one subdirectory. Can I append entries from both subdirectories this way? _ http://redirect.gimas.net/

Re: [CMake] Recursive list append

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 10:06 , Diablo 666 wrote: > > Hi, > > say I create a list in the top level CMakeLists.txt and call a subdirectory. > The subdirectory should add some entries to the list, then the top level > should use the full list. How can I accomplish this? > > Best regards, > Andreas

Re: [CMake] Recursive list append

2010-07-06 Thread Marcel Loose
Hi Andreas, Use 'set( PARENT_SCOPE])'. This will set the variable in the scope directly above the current scope. Remember that each add_subdirectory() will create a new scope. HTH, Marcel Loose. On Tue, 2010-07-06 at 10:06 +0200, Diablo 666 wrote: > Hi, > > say I create a list in the top level

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-07-06 Thread Marcel Loose
Here's my list of issues that I would like to see fixed. 0010771 FindMPI does not set all required compile flags - Modules - 2010-05-28 03:50 0010335 FIND_XXX problem with symlinks when using ENV - CMake - 2010-02-26 08:42 0010202 CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE weird behaviour -