[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