[cmake-developers] Finding versioned libraries

2012-02-15 Thread Rolf Eike Beer
Hi, as I found out today this construct doesn't work: find_library(MYLIB libfoo.so.2) This is because find_library will only try to access the whole path if the given name matches PREFIX.*SUFFIX, which is obviously not the case here. My simple approach on fixing this would be to also allow

Re: [cmake-developers] Finding versioned libraries

2012-02-15 Thread Eric Noulard
2012/2/15 Rolf Eike Beer e...@sf-mail.de: Hi, as I found out today this construct doesn't work: find_library(MYLIB libfoo.so.2) This is because find_library will only try to access the whole path if the given name matches PREFIX.*SUFFIX, which is obviously not the case here. My simple

Re: [cmake-developers] Finding versioned libraries

2012-02-15 Thread Rolf Eike Beer
2012/2/15 Rolf Eike Beer e...@sf-mail.de: Hi, as I found out today this construct doesn't work: find_library(MYLIB libfoo.so.2) This is because find_library will only try to access the whole path if the given name matches PREFIX.*SUFFIX, which is obviously not the case here. My simple

Re: [cmake-developers] Finding versioned libraries

2012-02-15 Thread Brad King
On 2/15/2012 9:18 AM, Eric Noulard wrote: If the user does not trust find_library for checking proper extension then: 1) He could modify/append CMAKE_FIND_LIBRARY_SUFFIXES in this case: list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES .so.2) should work. 2) He could

Re: [cmake-developers] Finding versioned libraries

2012-02-15 Thread Eric Noulard
2012/2/15 Brad King brad.k...@kitware.com: On 2/15/2012 9:18 AM, Eric Noulard wrote: If the user does not trust find_library for checking proper extension then:    1) He could modify/append CMAKE_FIND_LIBRARY_SUFFIXES        in this case:           list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES

[cmake-developers] Ninja help

2012-02-15 Thread Bill Hoffman
Where at are the versions of Ninja that I need to use with CMake for: Windows: Mac: Linux: I have seen several git branches mentioned in emails, and it is not clear to me where to get the right Ninja for CMake on all platforms. To setup nightly testing, is there a master git branch that we

Re: [cmake-developers] Ninja help

2012-02-15 Thread Bill Hoffman
On 2/15/2012 11:20 AM, Nicolas Desprès wrote: For compiling and testing you can find all the information in the HACKING file. Well, this is ugly: --HACKING Windows development on Windows: - install mingw, msys, and python - in the mingw shell, put Python in your path, and: python

Re: [cmake-developers] Ninja help

2012-02-15 Thread Nicolas Desprès
2012/2/15 Bill Hoffman bill.hoff...@kitware.com On 2/15/2012 11:20 AM, Nicolas Desprès wrote: For compiling and testing you can find all the information in the HACKING file. Well, this is ugly: --HACKING Windows development on Windows: - install mingw, msys, and python -

Re: [cmake-developers] Ninja help

2012-02-15 Thread Nicolas Desprès
2012/2/15 Richard Wackerbarth rich...@nfsnet.org Regretfully, testing the Ninja Generator for the nightly CMake dashboard is not as simple as would be desired. First, you have to bootstrap using a recent version of CMake (I am using my default Unix Makefile build for the nightly dashboard)

Re: [cmake-developers] Ninja help

2012-02-15 Thread Nicolas Desprès
On Wed, Feb 15, 2012 at 7:12 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/15/2012 1:01 PM, David Cole wrote: But this is true with every CMake generator *except* for the Unix Makefiles generator. And you don't have to build it twice. On most of our other dashboards, we simply use

Re: [cmake-developers] Ninja help

2012-02-15 Thread Bill Hoffman
On 2/15/2012 1:01 PM, David Cole wrote: But this is true with every CMake generator *except* for the Unix Makefiles generator. And you don't have to build it twice. On most of our other dashboards, we simply use an installation of a recent stable release as the CMake/ctest that drives the

[cmake-developers] ninja spaces in the path do not work on linux

2012-02-15 Thread Bill Hoffman
- On linux spaces in the path do not work, I get this error: http://www.cdash.org/CDash/viewBuildError.php?buildid=2009436 -Bill -- 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

Re: [cmake-developers] CTest vs. gcov

2012-02-15 Thread Rolf Eike Beer
So if no lines are covered then it reports 'Covered=false' which leads CDash to entirely ignoring the line count and not showing a link to the file. In contrast it does that when collecting files using CTEST_EXTRA_COVERAGE_GLOB: covSumFile \tFile Name=\ cmXMLSafe(fileName) \

Re: [cmake-developers] Making Config.cmake files easier to write

2012-02-15 Thread Alexander Neundorf
On Tuesday 14 February 2012, Alexander Neundorf wrote: On Tuesday 14 February 2012, Yury G. Kudryashov wrote: Alexander Neundorf wrote: On Tuesday 14 February 2012, Yury G. Kudryashov wrote: will substitute @PACKAGE_INCLUDE_INSTALL_DIR@ by ../../../include and

Re: [cmake-developers] Making Config.cmake files easier to write

2012-02-15 Thread Brad King
On 2/15/2012 4:50 PM, Alexander Neundorf wrote: Ok, a working ConfigureConfigFile.cmake is attached, together with example files, input and the configured output and the driving CMakeLists.txt. Nice! Alternative name ideas: CMakePackageHelper [1] ConfigureCMakePackage

Re: [cmake-developers] Ninja help

2012-02-15 Thread Peter Kümmel
On 15.02.2012 18:17, Bill Hoffman wrote: On 2/15/2012 11:20 AM, Nicolas Desprès wrote: For compiling and testing you can find all the information in the HACKING file. Well, this is ugly: --HACKING Windows development on Windows: - install mingw, msys, and python - in the mingw

Re: [cmake-developers] Ninja help

2012-02-15 Thread Peter Kümmel
Hi Bill, here is up-to-date cmake file: https://github.com/syntheticpp/dartruntime/tree/cmake Sorry, CP error, I mean: https://github.com/syntheticpp/ninja/tree/cmake It works on Win, Linux, Mac and ll gtest based unit test passes. The cmake file is in misc/. I also asked for

Re: [cmake-developers] ninja broken on windows?

2012-02-15 Thread Peter Kümmel
On 15.02.2012 19:31, Bill Hoffman wrote: OK, so ninja does not seem to work on windows for me... I got ninja from here: git://github.com/martine/ninja.git branch master I got cmake from here: remotes/stage/ninja-generator I removed the if(UNIX) in the cmake tree and built cmake with

Re: [cmake-developers] ninja broken on windows?

2012-02-15 Thread Bill Hoffman
On 2/15/2012 5:52 PM, Peter Kümmel wrote: In summary: - use the CMakeLists.txt from https://github.com/syntheticpp/ninja/tree/cmake - on Windows use ninja from https://github.com/syntheticpp/ninja/tree/token-splitter and wait and see what happens with official ninja I can

Re: [CMake] Some modules I cooked up the last few months. (mercurial etc.)

2012-02-15 Thread Minze A. Zwerver
Hi Again, After reading the module maintainers wiki page I made a mantis (minze_zr) and cdash account. If there is any use for the modules I will create a git account somewhere to host my modules. I hope to hear from some of the cmake maintainers how (or if) to proceed next. Met

Re: [CMake] $TARGET_FILE:tgt in the add_custom_command()

2012-02-15 Thread Kozlovskiy, Alexey
Hi, Thanks for your explanation. I will choose a different project name to avoid this issue. Thanks again! Regards, Alexey -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Michael Wild Sent: Tuesday, February 14, 2012 7:49 PM To:

[CMake] How to have a static/shared option in a Find script ?

2012-02-15 Thread Barth
Hello, I am trying to write a Find script for a library called DIM. It is something basic but I have a problem with caching. I have an option to force choosing the static library over the shared one : Then, I decide what is the name of the library to search depending on DIM_USE_STATIC and I

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Nicolas Desprès
On Tue, Feb 14, 2012 at 11:00 PM, David Cole david.c...@kitware.com wrote: Does anybody on this list have the capacity to volunteer to run / submit a CMake dashboard using the new experimental Ninja generator? (It's now a topic branch on our stage that has been merged to 'next' -- so it is

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Bill Hoffman
On 2/15/2012 10:27 AM, Nicolas Desprès wrote: = I may have an Ubuntu box and maybe a OS X 10.7 machine, depending on what is required. What do I have to setup? Is the machine required to be up and running all the time? Cheers, It is required that the machine submit once a day. To submit it

Re: [CMake] [cmake-developers] Ninja help

2012-02-15 Thread Richard Wackerbarth
Last night, David indicated that, after installing Ninja, it should be as simple as running the standard nightly submission for CMake but using Ninja as the CTEST_CMAKE_GENERATOR. I am trying to do that right now, but I am running into a bootstrap issue. I think that I have to first convert my

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Peter Collingbourne
On Wed, Feb 15, 2012 at 10:45:04AM -0500, Bill Hoffman wrote: On 2/15/2012 10:27 AM, Nicolas Desprès wrote: = I may have an Ubuntu box and maybe a OS X 10.7 machine, depending on what is required. What do I have to setup? Is the machine required to be up and running all the time? Cheers,

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Nicolas Desprès
On Wed, Feb 15, 2012 at 4:45 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/15/2012 10:27 AM, Nicolas Desprès wrote: = I may have an Ubuntu box and maybe a OS X 10.7 machine, depending on what is required. What do I have to setup? Is the machine required to be up and running all the

[CMake] ctest return code

2012-02-15 Thread Tom Deblauwe
Hello, I'm able to run my unittests and build everything using a ctest -S script, and also submit the results to cdash. However, I would like to determine if the unittests fail in the bash script where I run ctest in. But it doesn't return an error code when the unittests fail. How can I

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Matt Williams
On 14 February 2012 22:00, David Cole david.c...@kitware.com wrote: Does anybody on this list have the capacity to volunteer to run / submit a CMake dashboard using the new experimental Ninja generator? (It's now a topic branch on our stage that has been merged to 'next' -- so it is included

Re: [CMake] ctest return code

2012-02-15 Thread David Cole
Are you using ctest_build and ctest_test in your -S script? If so, then ctest should fail with a non-zero result when there are build errors or test failures. Are you saying that you have test failures, but ctest returns 0? Can you share your script, or reproduce this with a minimal example

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Bill Hoffman
On 2/15/2012 11:03 AM, Nicolas Desprès wrote: What's happens if it misses some day because the machine is not running for any reason ? Weekend, maintenance, etc... ? Not a bit deal, unless it is missing more often than not. I would say 95% up would be fine. If it is up and down all the

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Alexander Neundorf
On Wednesday 15 February 2012, Peter Collingbourne wrote: On Wed, Feb 15, 2012 at 10:45:04AM -0500, Bill Hoffman wrote: On 2/15/2012 10:27 AM, Nicolas Desprès wrote: = I may have an Ubuntu box and maybe a OS X 10.7 machine, depending on what is required. What do I have to setup?

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread Nicolas Desprès
On Wed, Feb 15, 2012 at 6:09 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/15/2012 11:04 AM, Peter Collingbourne wrote: On Wed, Feb 15, 2012 at 10:45:04AM -0500, Bill Hoffman wrote: I note that Kitware has machines set up to run dashboards for the Makefile generator. Is there any

Re: [CMake] Ninja + CMake on a dashboard?

2012-02-15 Thread David Cole
2012/2/15 Nicolas Desprès nicolas.desp...@gmail.com On Wed, Feb 15, 2012 at 6:09 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 2/15/2012 11:04 AM, Peter Collingbourne wrote: On Wed, Feb 15, 2012 at 10:45:04AM -0500, Bill Hoffman wrote: I note that Kitware has machines set up to

Re: [CMake] ctest return code

2012-02-15 Thread Bill Hoffman
On 2/15/2012 2:44 PM, Tom Deblauwe wrote: Hello, In attachment a project which illustrates the problem. Just change the directory in the ctest script continuous_dashboard.cmake to where your source is. Then i run ctest in my bash script. I'm in git bash on windows now, but I get the problem

Re: [CMake] ctest return code

2012-02-15 Thread David Cole
Is this just a git bash shell thing, then...? Do you get zero if you run it in a Windows cmd prompt, too? What does this give you? Start Run cmd C: cd \werk\cmake_tests ctest -S dashboard/continuous_**dashboard.cmake -VV echo %ERRORLEVEL% On Wed, Feb 15, 2012 at 2:44 PM, Tom

Re: [CMake] ctest return code

2012-02-15 Thread Tom Deblauwe
Hello, It is apparently a combination of the two things, first I had to check the RETURN_VALUE of the ctest_test command and then issue a fatal_error when not zero. Secondly: This works if I test it like you suggest in a command window: the %errorlevel% is set. However in the git bash shell

[CMake] Semicolons in windows path list for ExternalProject_Add or ExP_Add_Step

2012-02-15 Thread Isaiah Norton
Hi, Apologies in advance if I missed/misread something in the FAQ and the email threads I've found so far about semicolons. I am using Windows 7 64-bit, CMake 2.8.7, and Visual Studio 10 Win64 generator with msbuild, VC++ Express 2010, Windows SDK7.1. I need to pass a windows-style path list

Re: [CMake] ctest return code

2012-02-15 Thread Bill Hoffman
On 2/15/2012 3:57 PM, Tom Deblauwe wrote: It is apparently a combination of the two things, first I had to check the RETURN_VALUE of the ctest_test command and then issue a fatal_error when not zero. Secondly: This works if I test it like you suggest in a command window: the %errorlevel% is

Re: [CMake] How to have a static/shared option in a Find script ?

2012-02-15 Thread Michael Hertling
On 02/15/2012 03:48 PM, Barth wrote: Hello, I am trying to write a Find script for a library called DIM. It is something basic but I have a problem with caching. I have an option to force choosing the static library over the shared one : Then, I decide what is the name of the library to

Re: [CMake] How to have a static/shared option in a Find script ?

2012-02-15 Thread Barth
Hello, A great thanks for your extensive reply ! I am going to implement the clean approach following your advices. Best regards, Barth On 02/16/2012 12:47 AM, Michael Hertling [via CMake] wrote: On 02/15/2012 03:48 PM, Barth wrote: Hello, I am trying to write a Find script for a

[Cmake-commits] CMake branch, next, updated. v2.8.7-2620-g6d1de03

2012-02-15 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 6d1de03ade6f3d6006c33e05ffadf65ba677b3cb (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2622-gfd1e615

2012-02-15 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via fd1e615063d36571be7c59345b66b5752555ba06 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2630-g733ac6b

2012-02-15 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 733ac6bd2dc822daa6b6d58a789cbd081ef6a037 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2632-g2128373

2012-02-15 Thread Bill Hoffman
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 2128373082002cd11c2e3802d8346fc6d83df6f3 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-377-ge2042b6

2012-02-15 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via e2042b68d36e0881bfc00f926a275dda3d6cbc9d (commit) from

[Cmake-commits] CMake branch, next, updated. v2.8.7-2634-g4e006d6

2012-02-15 Thread Alexander Neundorf
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 4e006d6624ce569e2760b1ddc1f44838d3e2fe6a (commit) via