Re: [CMake] CMake and CURL

2013-06-22 Thread Shlomi Fish
Hi Sébastien,

On Thu, 20 Jun 2013 17:23:25 +0200
Sébastien caron sca...@aldebaran-robotics.com wrote:

 Hello everyone,
 
 I am trying to use CURL with a CMakeList file. But the command
 find_package(CURL) isnt working (it find the FindCURL.cmake file, but not
 the libraries).

You can try debugging it by using MESSAGE(...)s, strace/etc.

 
 I have on my system curl, libcurl3, libcurl3-gnutls and
 libcurl4-openssl-dev.

Do you have libcurl4-dev?

Regards,

Shlomi Fish

 
 Should I modify the auto-generated file  FindCURL.cmake, to give him the
 way manually ?
 
 
 Thanks
 
 Sebastien Caron



-- 
-
Shlomi Fish   http://www.shlomifish.org/
Parody of The Fountainhead - http://shlom.in/towtf

The apple completely supplanted the tree.
— http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Bootstrapping CMake

2013-06-06 Thread Shlomi Fish
Hi,

On Tue, 4 Jun 2013 16:57:04 -0700
Frerich Raabe ra...@froglogic.com wrote:

 Hi,
 
 one of the projects I'm working on requires that the build system can be
 bootstrapped, i.e. when unpacking a source tarball you run 'configure' which
 is actually a shell script which first runs 'make' to build the actual
 (proprietary) build tool - which has no dependencies other than a C++
 compiler and a C++ library - and then it runs the build tool. So even though
 our software has a significant number of external dependencies (the Qt
 libraries, for instance), the build tool itself is shipped with the sources,
 and it builds on a wide range of platforms. Whether this design is sensible
 or not is a different discussion, I'd rather not get dragged into discussing
 that. :-)
 
 I considered porting this project to CMake, and one of the issues which came
 up is that it requires customers to install CMake to build from sources - and
 CMake may (or may not?) be available on all the platforms we would like to
 support. So the question came up: is it feasible (and legally possible, as
 far as the license goes) to ship a (subset?) of CMake so that we can build
 CMake ourselves? Did anybody do this already?

It is legally possible because CMake is under the modified BSD licence:
http://en.wikipedia.org/wiki/BSD_licenses which is a
http://en.wikipedia.org/wiki/Permissive_free_software_licence , and allows
almost every use.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/

Selina: Toothpicks? Have you blokes been watching too much Sesame Street?
Warrior #1: Why, of course! Every mighty Klingon warrior has watched Sesame
Street.
— http://www.shlomifish.org/humour/Selina-Mandrake/

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-14 Thread Shlomi Fish
Hi Matthew,

On Mon, 13 May 2013 18:17:58 -0400
Matthew Woehlke matthew.woeh...@kitware.com wrote:

 On 2013-05-11 17:22, Shlomi Fish wrote:
  many of my CMake-based projects carry a common top-level Common.cmake file
  that I copy from one project to another and enhance, and since this is
  duplicate code/functionality I would like to consolidate it.
 
  What I want to be able to do is say something like:
 
  CODE
  INCLUDE(ShlomifCommon)
  /CODE
 
  at the top, and then have it read from a system wide ShlomifCommon.cmake
  file that I will maintain in one central location, and install.
 
 If you put the file in one of CMake's default module search paths, it 
 should Just Work. And/or if you arrange for your software process to set 
 CMAKE_MODULE_PATH to the location of the same, then again it should Just 
 Work.

Thanks! That worked.

 
 For redistribution, I would have your project do a list(APPEND) on the 
 same to where the file will exist when building from a distribution 
 source package. In development, just don't have a copy in that location 
 (or you could put one there to override the system copy if for some 
 reason you need to do so).

OK.

 
 Another option to consider is keeping the file in an external repository 
 and using your VCS's external-repo support to bring it into your other 
 projects. This way the file exists in your source tree, but your VCS is 
 tracking it against a central repository, rather than each project's 
 repo having independent copies. (This will also probably make getting 
 the file into your source packages easier.)
 

OK.

  For a bonus point, I'd like to have a way to copy this file into
  every project's tarball so it won't require installation.
 
 How do you create tarballs?
 

Using CPack’s make package_source.

Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Why I Love Perl - http://shlom.in/joy-of-perl

C++ is complex, complexifying and complexified.
(With apologies to the Oxford English Dictionary).

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-14 Thread Shlomi Fish
Hi Jean-Christophe,

On Mon, 13 May 2013 18:27:03 -0400
Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote:

 Hi,
 
 To download the common file(s) at configure time, you could follow the
 approach discussed here:
 http://cmake.3232098.n2.nabble.com/is-it-possible-to-download-CMake-modules-at-configure-time-td7583968.html#a7584113
 

I see, but it's hard to see what to do based on this git commit:

https://github.com/commontk/CTK/compare/00694c9f8a0da6ee28fb079902e6a8c3ec428058...891aa5443b110cc7e6aa0ec1339aad4b2c83ef9d

Regards,

Shlomi Fish

 Hth
 Jc
 
 
 On Mon, May 13, 2013 at 6:17 PM, Matthew Woehlke 
 matthew.woeh...@kitware.com wrote:
 
  On 2013-05-11 17:22, Shlomi Fish wrote:
 
  many of my CMake-based projects carry a common top-level Common.cmake
  file
  that I copy from one project to another and enhance, and since this is
  duplicate code/functionality I would like to consolidate it.
 
  What I want to be able to do is say something like:
 
  CODE
  INCLUDE(ShlomifCommon)
  /CODE
 
  at the top, and then have it read from a system wide ShlomifCommon.cmake
  file that I will maintain in one central location, and install.
 
 
  If you put the file in one of CMake's default module search paths, it
  should Just Work. And/or if you arrange for your software process to set
  CMAKE_MODULE_PATH to the location of the same, then again it should Just
  Work.
 
  For redistribution, I would have your project do a list(APPEND) on the
  same to where the file will exist when building from a distribution source
  package. In development, just don't have a copy in that location (or you
  could put one there to override the system copy if for some reason you need
  to do so).
 
  Another option to consider is keeping the file in an external repository
  and using your VCS's external-repo support to bring it into your other
  projects. This way the file exists in your source tree, but your VCS is
  tracking it against a central repository, rather than each project's repo
  having independent copies. (This will also probably make getting the file
  into your source packages easier.)
 
 
   For a bonus point, I'd like to have a way to copy this file into
  every project's tarball so it won't require installation.
 
 
  How do you create tarballs?
 
  --
  Matthew
 
 
  --
 
  Powered by www.kitware.com
 
  Visit other Kitware open-source projects at http://www.kitware.com/**
  opensource/opensource.htmlhttp://www.kitware.com/opensource/opensource.html
 
  Please keep messages on-topic and check the CMake FAQ at:
  http://www.cmake.org/Wiki/**CMake_FAQhttp://www.cmake.org/Wiki/CMake_FAQ
 
  Follow this link to subscribe/unsubscribe:
  http://www.cmake.org/mailman/**listinfo/cmakehttp://www.cmake.org/mailman/listinfo/cmake
 
 
 
 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Text Processing Tools - http://shlom.in/text-proc

http://en.wikipedia.org/wiki/Evil redirects to XSLT.
— http://www.shlomifish.org/humour/bits/facts/XSLT/

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-11 Thread Shlomi Fish
Hi all,

many of my CMake-based projects carry a common top-level Common.cmake file
that I copy from one project to another and enhance, and since this is
duplicate code/functionality I would like to consolidate it.

What I want to be able to do is say something like:

CODE

INCLUDE(ShlomifCommon)

/CODE

at the top, and then have it read from a system wide ShlomifCommon.cmake
file that I will maintain in one central location, and install. For a bonus
point, I'd like to have a way to copy this file into every project's tarball
so it won't require installation.

What would be the best way to achieve this?

Regards,

Shlomi Fish 

-- 
-
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

There is no IGLU cabal! The former cabalists are trying to prove the
correctness of a program that proves the correctness of proofs of other
programs.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [cmake-developers] Request for Comments: Will implementing an interactive CMake debugger be welcome?

2013-01-08 Thread Shlomi Fish
Hi Matt,

On Mon, 7 Jan 2013 17:06:11 -0700
Matt McCormick matt.mccorm...@kitware.com wrote:

 Hi Shlomi,
 
 I also think this would be a great feature.  I started on an
 implementation here:
 
   https://github.com/thewtex/cmakedbg
 
 but I have not had time to follow it through.  The user interface is
 written in Python/Cython for fast prototyping purposes, but it could
 be written all C/C++ if you would like.  I believe I got to the point
 where it was possible to set a breakpoint.  I was building against
 this branch:
 
   https://github.com/thewtex/CMake/tree/cmakedbg

Great! Thanks for the link. I'll check it out.

 
 Overall, I think the approach is fairly solid.  When CMake processes a
 line, it asks a debugger if it is interested.  For there, the debugger
 can pause if a breakpoint is set at that point, let the user print the
 content of current variables that are defined, ...  Since it uses
 CMake for processing all the code, the debugger will behave exactly
 the same as a cmake executable.
 
 Feel free to take the project and run with it.
 

I'll try to - thanks.

Regards,

Shlomi Fish

 Matt
 
 


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Sisko: Q: would it be OK if my crew brought along their phasers with them?

Q: Of course. They can also bring some photon torpedoes if they wish. None of
them will work, but I don’t mind them taking them.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

[cmake-developers] Request for Comments: Will implementing an interactive CMake debugger be welcome?

2012-12-25 Thread Shlomi Fish
Hi all,

following a discussion we had on ##llvm on irc.oftc.net (the main LLVM channel,
because LLVM+clang can be built using CMake), I've been wondering if you would
like someone (like me) to implement an interactive debugger (or debugging
mode) for cmake invocations, similar to gdb, perl -d, pdb.py, etc.? I saw
this thread:

http://www.cmake.org/pipermail/cmake/2009-July/030728.html

Where it was recommended to use cmake --trace, and I've been using MESSAGE
( ... ) and MESSAGE (FATAL_ERROR ...) for most of my debugging, but I'm
interested in something better.

I can try working on it given the time and motivation (in a separate git
branch on a GitHub/Bitbucket repository), but I want to get a green light for
it, because once introduced, it naturally should be supported in the future
(and if I'm going to write it, I am willing to help support it).

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Parody of The Fountainhead - http://shlom.in/towtf

I started out as a BASIC programmer. Some people would say that I’m
permanently damaged. Some people are undoubtedly right.
— Larry Wall

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] CMake 2.8.10 available for download

2012-11-01 Thread Shlomi Fish
Hi David,

On Wed, 31 Oct 2012 21:45:59 -0400
David Cole david.c...@kitware.com wrote:

 On behalf of myself, Ken, Bill, Brad, Alex, Eike, Steve, Eric, Zach,
 Ben and the rest of the CMake team from all around the world, we are
 pleased to announce that CMake 2.8.10 is now available for download
 at:
 
   http://www.cmake.org/files/v2.8/?C=M;O=D
 
 It is also available from the usual download links found on the CMake web
 site:
 
   http://www.cmake.org/cmake/resources/software.html
 

that's great. Thanks to all the people involved.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/

But if you're writing [open source software] for the world, you have to listen
to your customers — this doesn't change just because they're not paying you in
money.
— Eric S. Raymond in The Cathedral and the Bazaar

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] CMake 2.8.10-rc3 ready for testing!

2012-10-29 Thread Shlomi Fish
Hi David,

On Thu, 25 Oct 2012 08:28:57 -0400
David Cole david.c...@kitware.com wrote:

 The following output is what causes the test to fail:
 
 267: # Untracked files:
 267: #   (use git add file... to include in what will be committed)
 267: #
 267: #  build/
 
 It's just because you're building the code in a sub-directory of the
 source dir. (Therefore we can't really do a CheckSourceTree test --
 the point of the test is to make sure that no previous tests have
 written anything anywhere underneath the source dir.)
 
 You can safely ignore this test failure.
 
 To avoid it, build CMake in a sibling directory of the source dir
 rather than underneath the source dir.
 
 
 HTH,
 David
 

Thanks, after I did that all tests are successful.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

There’s no point in keeping an idea to yourself since there’s a 10 to 1 chance
that somebody already has it and will share it before you.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] CMake 2.8.10-rc3 ready for testing!

2012-10-25 Thread Shlomi Fish
On Wed, 24 Oct 2012 19:16:39 -0400
David Cole david.c...@kitware.com wrote:

 Instead of make test, please run ctest -VV -R CheckSourceTree and
 send the output.
 
 It probably just means you have some local mods to your source tree,
 or an untracked file is present.
 
 

Here you go (the outputs of the ctest command and the ./bin/ctest command
are nearly identical except for a small difference in run times):

[QUOTE]

UpdateCTestConfiguration  from 
:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
Parse Config 
file:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
 Add coverage exclude regular expressions.
 Add coverage exclude: XCode
 Add coverage exclude: Kdevelop
 Add coverage exclude: /Source/(cm|kw)sys/
 Add coverage exclude: /CMakeFiles/CMakeTmp/
 Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src
UpdateCTestConfiguration  from 
:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
Parse Config 
file:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
Test project /home/shlomif/Download/unpack/prog/cmake/cmake/build
Constructing a list of tests
Guessing configuration NoConfig
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 267
Start 267: CMake.CheckSourceTree

267: Test command: 
/home/shlomif/Download/unpack/prog/cmake/cmake/build/bin/cmake 
-DCMake_BINARY_DIR:PATH=/home/shlomif/Download/unpack/prog/cmake/cmake/build 
-DCMake_SOURCE_DIR:PATH=/home/shlomif/Download/unpack/prog/cmake/cmake 
-DGIT_EXECUTABLE:STRING=/bin/git -DHOME:STRING=/home/shlomif -P 
/home/shlomif/Download/unpack/prog/cmake/cmake/build/Tests/CMakeTests/CheckSourceTreeTest.cmake
267: Test timeout computed to be: 1500
267: 
=
267: CTEST_FULL_OUTPUT (Avoid ctest truncation of output)
267: 
267: CMake_BINARY_DIR='/home/shlomif/Download/unpack/prog/cmake/cmake/build'
267: CMake_SOURCE_DIR='/home/shlomif/Download/unpack/prog/cmake/cmake'
267: GIT_EXECUTABLE='/bin/git'
267: HOME='/home/shlomif'
267: ENV{DASHBOARD_TEST_FROM_CTEST}=''
267: 
267: build dir is under source dir
267: src_len='46'
267: bin_len='52'
267: substr_len='47'
267: bin_dir='/home/shlomif/Download/unpack/prog/cmake/cmake/'
267: in_source_build='1'
267: 
267: is_git_checkout='1'
267: 
267: 
=
267: This is a git checkout, using git to verify source tree
267: 
267: === output of 'git --version' ===
267: git version 1.8.0
267: === end output ===
267: 
267: === output of 'git branch -a' ===
267: * master
267:   remotes/origin/HEAD - origin/master
267:   remotes/origin/dashboard
267:   remotes/origin/hooks
267:   remotes/origin/maint
267:   remotes/origin/master
267:   remotes/origin/next
267:   remotes/origin/nightly
267:   remotes/origin/nightly-master
267:   remotes/origin/release
267: === end output ===
267: 
267: === output of 'git log -1' ===
267: commit f551fa62450379b41b510054948e097582538357
267: Author: Kitware Robot kwro...@kitware.com
267: Date:   Wed Oct 24 00:01:07 2012 -0400
267: 
267: CMake Nightly Date Stamp
267: === end output ===
267: 
267: Copy/paste this command to reproduce:
267: cd /home/shlomif/Download/unpack/prog/cmake/cmake  /bin/git status
267: 
267: Results of running /bin/git;status
267: rv='0'
267: ov='# On branch master
267: # Your branch is ahead of 'origin/master' by 533 commits.
267: #
267: # Untracked files:
267: #   (use git add file... to include in what will be committed)
267: #
267: #  build/
267: nothing added to commit but untracked files present (use git add to 
track)
267: '
267: ev=''
267: 
267: '# On branch masterE'
267: '# Your branch is ahead of 'origin/master' by 533 commits.E'
267: '#E'
267: '# Untracked files:E'
267:locally non-added file/directory detected...
267: '#   (use git add file... to include in what will be committed)E'
267: '#E'
267: '# build/E'
267: 'nothing added to commit but untracked files present (use git add to 
track)E'
267: 
=
267: additions='0'
267: conflicts='0'
267: modifications='0'
267: nonadditions='1'
267: 
267: 
=
267: interactive test run
267: 
267: CMake Error at CheckSourceTreeTest.cmake:345 (message):
267:   test fails: local source tree non-additions: use git add before 
committing,
267:   or remove the files from the source tree
267: 
267: 
1/1 Test #267: CMake.CheckSourceTree ***Failed0.04 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.94 sec

The following tests FAILED:
267 - CMake.CheckSourceTree (Failed)
Errors while running CTest

[/QUOTE]

Regards,

Shlomi Fish

-- 
-
Shlomi Fish

Re: [cmake-developers] CMake 2.8.10-rc3 ready for testing!

2012-10-24 Thread Shlomi Fish
Hi all,

thanks for your work on CMake.

On Wed, 24 Oct 2012 16:39:07 -0400
David Cole david.c...@kitware.com wrote:

 The CMake 2.8.10 release candidate stream continues! This is the last
 RC unless somebody finds a critical, must-fix issue with it.
 
 You can find the source and binaries here:
 
   http://www.cmake.org/files/v2.8/?C=M;O=D
 
 This email is also available as blog posts:
 
   http://www.kitware.com/blog/home/post/406
   http://cmake.blogspot.com/2012/10/cmake-2810-rc3-ready-for-testing.html
 
 Some of the notable changes in this release are:
 

OK, I did cmake .. ; make ; make test on the latest git source, and I got
this:


99% tests passed, 1 tests failed out of 267

Label Time Summary:
Label1=   0.06 sec
Label2=   0.06 sec

Total Test time (real) = 619.32 sec

The following tests FAILED:
267 - CMake.CheckSourceTree (Failed)
Errors while running CTest
make: *** [test] Error 8


Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

That's why I feed my leprechaun every day — because there are not enough
phonemes in Navajo to tell him to get his act together and find a job.
— My comment on http://www.youtube.com/watch?v=izne8XcaBBg .

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] Ninja: files per second

2012-07-30 Thread Shlomi Fish
Hi Peter,

On Sat, 28 Jul 2012 14:03:48 +0200
Peter Kümmel syntheti...@gmx.net wrote:

 On 28.07.2012 11:43, Shlomi Fish wrote:
 
  Nice.
 
  I was now able to get the Freecell Solver test suite to pass with ninja 
  test,
  but there is one problem: when I run ninja -vv test, then ninja displays 
  the
  line
  [1/1] cd /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/n
  perl /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/run-tests.pl
 
  and then it waits for the entire test suite to run, and only then displays 
  its
  output. This is frustrating because I want to see the output while the test
  suite is running. Is there anyway to do it like that?
 
 No, this is by design, ninja collects the whole output so it is not 
 interweaved
 with the output of other processes.
 
 Peter

Well, when I run ninja test, then eventually there's only one process running
and this it the test harness (for which I don't want to wait to finish to view
intermediate output). Can you consider integrating Nicolas’ solution from:

http://public.kitware.com/pipermail/cmake-developers/2012-July/004701.html

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/

English spelling aims to be consistent. Publicly and methodically.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] Ninja: files per second

2012-07-28 Thread Shlomi Fish
Hi Peter,

thanks for your work on Ninja.

On Sat, 28 Jul 2012 10:57:44 +0200
Peter Kümmel syntheti...@gmx.net wrote:

 I've added a nice feature to ninja which is now upstream:
 
 By setting the environment variable NINJA_STATUS
 
 bash:
  export NINJA_STATUS=[%s/%t %o(%c)/s] 
 
 cmd.exe (with space at the end):
 
  set NINJA_STATUS=[%s/%t %o(%c)/s]
 
 Ninja prints the overall processed files per second and the
 the current rate of files per second (averaged over the last -j files).
 
 For instance compiling cmake I get (-DCMAKE_BUILD_TYPE=Release):
 - Linux   gcc 4.6: [397/397 6.6(12)/s]
 - Windows gcc 4.7: [438/438 5.9(11)/s]
 - Mac gcc 4.2: [462/462 4.9(3)/s]
 

Nice.

I was now able to get the Freecell Solver test suite to pass with ninja test,
but there is one problem: when I run ninja -vv test, then ninja displays the
line 
[1/1] cd /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/n 
perl /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/run-tests.pl

and then it waits for the entire test suite to run, and only then displays its
output. This is frustrating because I want to see the output while the test
suite is running. Is there anyway to do it like that?

Regards,

Shlomi Fish

 See also
 https://github.com/martine/ninja/blob/master/doc/manual.asciidoc#environment-variables
 
 Happy benchmarking,
 Peter
 --
 
 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 check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ
 
 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers



-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs

* Backward compatibility is your worst enemy.
* Backward compatibility is your users’ best friend.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [CMake] [cmake-developers] Ninja: files per second

2012-07-28 Thread Shlomi Fish
Hi Peter,

thanks for your work on Ninja.

On Sat, 28 Jul 2012 10:57:44 +0200
Peter Kümmel syntheti...@gmx.net wrote:

 I've added a nice feature to ninja which is now upstream:
 
 By setting the environment variable NINJA_STATUS
 
 bash:
  export NINJA_STATUS=[%s/%t %o(%c)/s] 
 
 cmd.exe (with space at the end):
 
  set NINJA_STATUS=[%s/%t %o(%c)/s]
 
 Ninja prints the overall processed files per second and the
 the current rate of files per second (averaged over the last -j files).
 
 For instance compiling cmake I get (-DCMAKE_BUILD_TYPE=Release):
 - Linux   gcc 4.6: [397/397 6.6(12)/s]
 - Windows gcc 4.7: [438/438 5.9(11)/s]
 - Mac gcc 4.2: [462/462 4.9(3)/s]
 

Nice.

I was now able to get the Freecell Solver test suite to pass with ninja test,
but there is one problem: when I run ninja -vv test, then ninja displays the
line 
[1/1] cd /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/n 
perl /home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/run-tests.pl

and then it waits for the entire test suite to run, and only then displays its
output. This is frustrating because I want to see the output while the test
suite is running. Is there anyway to do it like that?

Regards,

Shlomi Fish

 See also
 https://github.com/martine/ninja/blob/master/doc/manual.asciidoc#environment-variables
 
 Happy benchmarking,
 Peter
 --
 
 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 check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ
 
 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers



-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs

* Backward compatibility is your worst enemy.
* Backward compatibility is your users’ best friend.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [cmake-developers] CMake 2.8.9-rc2 ready for testing!

2012-07-17 Thread Shlomi Fish
On Tue, 17 Jul 2012 09:11:49 -0400
Brad King brad.k...@kitware.com wrote:

 On 07/17/2012 05:41 AM, Shlomi Fish wrote:
  The following tests FAILED:
  182 - BootstrapTest (Failed)
  198 - CMakeOnly.AllFindModules (Failed)
 
 Thanks for testing.  Please run the tests like this:
 
  $ bin/ctest -R '(BootstrapTest|AllFindModules)' -V
 
 to see verbose output so we know why they failed.
 

The output of that command is attached to this message after compressed with xz.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Star Trek: We, the Living Dead - http://shlom.in/st-wtld

You name it — COBOL does not have it.

Please reply to list if it's a mailing list post - http://shlom.in/reply .


ctest.output.txt.xz
Description: application/xz
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] BootstrapTest on Mageia (was: CMake 2.8.9-rc2 ready for testing!)

2012-07-17 Thread Shlomi Fish
Hi Brad,

On Tue, 17 Jul 2012 10:49:15 -0400
Brad King brad.k...@kitware.com wrote:

 On 07/17/2012 10:20 AM, Shlomi Fish wrote:
  The output of that command is attached to this message after compressed 
  with xz.
 
 The output contains
 
   CMake 2^M .8^M .9^M .0^M , Copyright 2000-2011 Kitware, Inc.
 
 and later
 
  .../build/Tests/BootstrapTest/Bootstrap.cmk/cmConfigure.h:27:24: warning: 
 missing terminating  character [enabled by default]
  .../build/Tests/BootstrapTest/Bootstrap.cmk/cmConfigure.h:29:1: warning: 
 missing terminating  character [enabled by default]
  .../build/Tests/BootstrapTest/Bootstrap.cmk/cmConfigure.h:29:1: error: 
 missing terminating  character
 
 Did you extract the source from the .zip file or some other way
 that leads to CRLF newlines?

What I did was:

tar -xvf cmake-2.8.9-rc2-1-src.tar.bz2

And then:

tar -xvf cmake-2.8.9-rc2.tar.bz2.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs

Q: I’ll be about 6.5 milliard Terran years next September.
— Star Trek, “We, the Living Dead” by Shlomi Fish

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] FindJasper version in AllFindModules test (was: CMake 2.8.9-rc2 ready for testing!)

2012-07-17 Thread Shlomi Fish
Hi,

On Tue, 17 Jul 2012 10:38:58 -0400
Brad King brad.k...@kitware.com wrote:

 On 07/17/2012 05:41 AM, Shlomi Fish wrote:
  With cmake-2.8.9-rc2 on Mageia Linux Cauldron (see
  https://wiki.mageia.org/en/Cauldron ) I am getting:
 [snip]
 On 07/17/2012 10:20 AM, Shlomi Fish wrote:
   $ bin/ctest -R '(BootstrapTest|AllFindModules)' -V
  
  The output of that command is attached to this message after compressed 
  with xz.
 
 The AllFindModules test fails with:
 
  --Checking FindJasper
  -- Found Jasper: /usr/lib64/libjasper.so
  -- JASPER_VERSION_STRING=''
  CMake Error at CMakeLists.txt:53 (message):
unexpected: JASPER_VERSION_STRING does not begin with a decimal digit
  Call Stack (most recent call first):
CMakeLists.txt:75 (check_version_string)
 
  CMake Error at CMakeLists.txt:56 (message):
unexpected: JASPER_VERSION_STRING is empty
  Call Stack (most recent call first):
CMakeLists.txt:75 (check_version_string)
 
  CMake Error at CMakeLists.txt:59 (message):
unexpected: JASPER_VERSION_STRING is VERSION_EQUAL 0
  Call Stack (most recent call first):
CMakeLists.txt:75 (check_version_string)
 
  CMake Error at CMakeLists.txt:62 (message):
unexpected: JASPER_VERSION_STRING is NOT VERSION_GREATER 0
  Call Stack (most recent call first):
CMakeLists.txt:75 (check_version_string)
 
 Shlomi, what version of Jasper is installed?
 Does jasper/jas_config.h have a JAS_VERSION macro?

shlomif@telaviv1:~$ rpm -qa '*jasper*'
lib64jasper-devel-1.900.1-13.mga2
lib64jasper1-1.900.1-13.mga2

shlomif@telaviv1:~$ rpm -ql lib64jasper-devel | xargs grep JAS_VERSION
grep: /usr/include/jasper: Is a directory
/usr/include/jasper/jas_version.h:#ifndef JAS_VERSION_H
/usr/include/jasper/jas_version.h:#define JAS_VERSION_H
/usr/include/jasper/jas_version.h:#if !defined(JAS_VERSION)
/usr/include/jasper/jas_version.h:#define   JAS_VERSION 
unknown
/usr/include/jasper/jas_version.h:  returned by this function may not 
necessarily correspond to JAS_VERSION. */
grep: /usr/include/multiarch-x86_64-linux/jasper: Is a directory
/usr/include/multiarch-x86_64-linux/jasper/jas_config.h:#define JAS_VERSION 
1.900.1
/usr/include/multiarch-x86_64-linux/jasper/jas_config.h:#define JAS_VERSION 
1.900.1
grep: /usr/share/doc/lib64jasper-devel: Is a directory

hope it helps.

/usr/include/jasper/jas_config.h just contains this:

#define _MULTIARCH_HEADER jasper/jas_config.h
#include multiarch-dispatch.h

Regards,

Shlomi Fish
 
 Eike, other questions/ideas?
 
 -Brad



-- 
-
Shlomi Fish   http://www.shlomifish.org/
Freecell Solver - http://fc-solve.shlomifish.org/

“Interesting” has a negative correlation with “successful”.
— Anno on Freenode's #perl

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] BootstrapTest v. CRLF newlines

2012-07-17 Thread Shlomi Fish
Hello David,

On Tue, 17 Jul 2012 11:49:43 -0400
David Cole david.c...@kitware.com wrote:

 On Tue, Jul 17, 2012 at 11:47 AM, Brad King brad.k...@kitware.com wrote:
  On 07/17/2012 11:12 AM, Shlomi Fish wrote:
  What I did was:
 
  tar -xvf cmake-2.8.9-rc2-1-src.tar.bz2
 
  And then:
 
  tar -xvf cmake-2.8.9-rc2.tar.bz2.
 
  The original source tarball is here:
 
   http://www.cmake.org/files/v2.8/cmake-2.8.9-rc2.tar.gz
 
  Please try that one.
 
  Dave, what produces the -src package and why are we
  distributing it?
 
  -Brad
 
 The -1-src package is the cygwin source package. Not intended for
 use outside of a cygwin installation.

Well, it is titled confusingly. Can it be moved to under a cygwin
sub-directory or contain cygwin in its file name?

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

Chuck Norris wrote a complete Perl 6 implementation in a day, but then
destroyed all evidence with his bare hands, so no‐one will know his secrets.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--

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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

[CMake] Why does make pdfs build all targets and then warns on cannot build TODO_pdf?

2009-08-29 Thread Shlomi Fish
Hi all!

In:

https://svn.berlios.de/svnroot/repos/fc-solve/branches/online-documents-
unification-into-markup-lang/fc-solve/source/

(short URL - http://xrl.us/bffnp2 )

After I do cmake ., I'm getting:


shlomi:$trunk/fc-solve/source$ make pdfs
[ 14%] Built target README_pdf
[ 28%] Built target AUTHORS_pdf
[ 42%] Built target COPYING_pdf
[ 57%] Built target HACKING_pdf
[ 71%] Built target INSTALL_pdf
[ 85%] Built target USAGE_pdf
[100%] Built target TODO_pdf
make[3]: *** No rule to make target `TODO_pdf', needed by `CMakeFiles/pdfs'.  
Stop.
make[2]: *** [CMakeFiles/pdfs.dir/all] Error 2
make[1]: *** [CMakeFiles/pdfs.dir/rule] Error 2
make: *** [pdfs] Error 2


I'm on Linux (Mandriva Linux Cooker), using cmake-2.6.4-3mdv2010.0.src.rpm .

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
What does Zionism mean? - http://shlom.in/def-zionism

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-25 Thread Shlomi Fish
On Thursday 25 June 2009 10:35:30 Marcel Loose wrote:
 Hi Shlomi,

 If you want to RUN the tests as part of 'make all', I think you're out
 of luck. 

No, I don't want that. What I do want is to that make test (or alternatively 
make check) to depend on make all and run it automatically before starting 
the tests. 

 In the method I proposed, you can use 'make check', which will
 build all the test programs and run them. If all your sources have
 associated test programs, this will effectively build all your source
 code as well!

 For this to work, you should use:

 - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) (only ONCE!)
 - The following triad (for each test program):
   - add_executable(${name} srcs...)
   - add_test(${name} ${name})
   - add_dependencies(check ${name})


This seems like it would build build a few executables and then run them as 
tests. My test, on the other hand, is a Perl program that runs a few TAP 
scripts (see http://testanything.org/ ) and depends on the normal executables 
(that may later get installed or run from ./) to work. So I need a dependency 
for make all on make check/make test.

Regards,

Shlomi Fish

 Best regards,
 Marcel Loose.

 On Wed, 2009-06-24 at 15:04 +0300, Shlomi Fish wrote:
  Hi Marcel!
 
  On Tuesday 23 June 2009 13:03:25 Marcel Loose wrote:
   Hi Shlomi
  
   You might consider using another target, say 'check'. I've used that to
   mimic more or less the GNU autotools behaviour. See
   http://www.cmake.org/Wiki/CMakeEmulateMakeCheck. Don't use
   EXCLUDE_FROM_ALL if you want your test programs to depend on the target
   'all'.
 
  Tried it and it didn't work. I still couldn't get it to run the all
  target by default (i.e: depend on it). The EXCLUDE_FROM_ALL specifies
  whether check will be built as part of all - not vice versa.
 
  Regards,
 
  Shlomi Fish
 
   Best regards,
   Marcel Loose.
  
   -Original Message-
   From: Hugo Heden hugohe...@gmail.com
   To: Shlomi Fish shlo...@iglu.org.il
   Cc: Cmake Mailing List cmake@cmake.org
   Subject: Re: [CMake] How to make sure make test depends on make all
   Date: Tue, 23 Jun 2009 10:57:16 +0200
  
   On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish shlo...@iglu.org.il
   wrote:
   Hi all!
  
   I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and
   ran into a
   problem. I want make test (which is a custom target) to
   depend on make
   all, in this codebase:
  
  
   I can't say that I understand the error messages you're getting, but it
   is unfortunately *not* possible to make built-in targets like test,
   all and install depend on each other. See for example this bug:
  
   http://public.kitware.com/Bug/view.php?id=8438
  
  
   ___
   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 check the CMake FAQ at:
   http://www.cmake.org/Wiki/CMake_FAQ
  
   Follow this link to subscribe/unsubscribe:
   http://www.cmake.org/mailman/listinfo/cmake

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Star Trek: We, the Living Dead - http://xrl.us/omqz4

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-25 Thread Shlomi Fish
Hi Marcel!

On Thursday 25 June 2009 13:30:53 Marcel Loose wrote:
 Hi Shlomi,

 It's not completely clear to me how you'd normally run a test. Is that
 something like:

 $ tap mytest-prog

 If so, you could do 'add_test(${name} tap ${name})


No, the TAP harness is written in Perl and I just run perl run-tests.pl to 
run all the TAP tests and report the results. Some tests are written in Perl , 
and some are written in C, and they all output results in the TAP format that 
are processed by the harness.

What I want is that make check will run make all before running the test 
harness.

Regards,

Shlomi Fish

 Best regards,
 Marcel Loose.

 On Thu, 2009-06-25 at 12:45 +0300, Shlomi Fish wrote:
  On Thursday 25 June 2009 10:35:30 Marcel Loose wrote:
   Hi Shlomi,
  
   If you want to RUN the tests as part of 'make all', I think you're out
   of luck.
 
  No, I don't want that. What I do want is to that make test (or
  alternatively make check) to depend on make all and run it
  automatically before starting the tests.
 
   In the method I proposed, you can use 'make check', which will
   build all the test programs and run them. If all your sources have
   associated test programs, this will effectively build all your source
   code as well!
  
   For this to work, you should use:
  
   - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) (only ONCE!)
   - The following triad (for each test program):
 - add_executable(${name} srcs...)
 - add_test(${name} ${name})
 - add_dependencies(check ${name})
 
  This seems like it would build build a few executables and then run them
  as tests. My test, on the other hand, is a Perl program that runs a few
  TAP scripts (see http://testanything.org/ ) and depends on the normal
  executables (that may later get installed or run from ./) to work. So I
  need a dependency for make all on make check/make test.
 
  Regards,
 
  Shlomi Fish
 
   Best regards,
   Marcel Loose.
  
   On Wed, 2009-06-24 at 15:04 +0300, Shlomi Fish wrote:
Hi Marcel!
   
On Tuesday 23 June 2009 13:03:25 Marcel Loose wrote:
 Hi Shlomi

 You might consider using another target, say 'check'. I've used
 that to mimic more or less the GNU autotools behaviour. See
 http://www.cmake.org/Wiki/CMakeEmulateMakeCheck. Don't use
 EXCLUDE_FROM_ALL if you want your test programs to depend on the
 target 'all'.
   
Tried it and it didn't work. I still couldn't get it to run the all
target by default (i.e: depend on it). The EXCLUDE_FROM_ALL specifies
whether check will be built as part of all - not vice versa.
   
Regards,
   
Shlomi Fish
   
 Best regards,
 Marcel Loose.

 -Original Message-
 From: Hugo Heden hugohe...@gmail.com
 To: Shlomi Fish shlo...@iglu.org.il
 Cc: Cmake Mailing List cmake@cmake.org
 Subject: Re: [CMake] How to make sure make test depends on make
 all Date: Tue, 23 Jun 2009 10:57:16 +0200

 On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish shlo...@iglu.org.il
 wrote:
 Hi all!

 I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker,
 and ran into a
 problem. I want make test (which is a custom target) to
 depend on make
 all, in this codebase:


 I can't say that I understand the error messages you're getting,
 but it is unfortunately *not* possible to make built-in targets
 like test, all and install depend on each other. See for
 example this bug:

 http://public.kitware.com/Bug/view.php?id=8438


 ___
 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 check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-25 Thread Shlomi Fish
On Thursday 25 June 2009 14:50:39 Marcel Loose wrote:
 Hi Shlomi,

 As you already found out the hard way, it is not possible to let the
 target 'all' depend on, e.g., 'test'. Targets like 'all' and 'test' are
 special to CMake.

OK. I want check or test to depend on all - not vice versa.


 How does run-tests.pl know which tests to run? Does it read some kind of
 configuration file?


No, I'm just globbing all files that match a certain pattern:

{{{
my $tests_glob = *.{exe,t};

[and later]

# Put the valgrind test last because it takes a long time.
my @tests =
sort
{ 
(($a =~ /valgrind/) = ($b =~ /valgrind/))
||
($a cmp $b)
}
glob(t/$tests_glob)
;

}}}

Regards,

Shlomi Fish

 Best regards,
 Marcel Loose.


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://xrl.us/bjn7t

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-25 Thread Shlomi Fish
On Thursday 25 June 2009 19:00:11 Tyler Roscoe wrote:
 On Thu, Jun 25, 2009 at 04:58:46PM +0300, Shlomi Fish wrote:
  On Thursday 25 June 2009 14:50:39 Marcel Loose wrote:
   As you already found out the hard way, it is not possible to let the
   target 'all' depend on, e.g., 'test'. Targets like 'all' and 'test' are
   special to CMake.
 
  OK. I want check or test to depend on all - not vice versa.

 The best way I can think of is to collect all the targets that are run
 when you do make all into ${all_targets} and then do:

 add_dependencies (check ${all_targets})


Yes, I've thought about it too. More work and somewhat more complicated logic, 
but it may be worth it.

Or I can try fixing the CMake bug at the source.

Thanks!

Regards,

Shlomi Fish

 hth,
 tyler

-- 
-
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://xrl.us/bjn7i

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-24 Thread Shlomi Fish
Hi Marcel!

On Tuesday 23 June 2009 13:03:25 Marcel Loose wrote:
 Hi Shlomi

 You might consider using another target, say 'check'. I've used that to
 mimic more or less the GNU autotools behaviour. See
 http://www.cmake.org/Wiki/CMakeEmulateMakeCheck. Don't use
 EXCLUDE_FROM_ALL if you want your test programs to depend on the target
 'all'.


Tried it and it didn't work. I still couldn't get it to run the all target 
by default (i.e: depend on it). The EXCLUDE_FROM_ALL specifies whether check 
will be built as part of all - not vice versa.

Regards,

Shlomi Fish


 Best regards,
 Marcel Loose.

 -Original Message-
 From: Hugo Heden hugohe...@gmail.com
 To: Shlomi Fish shlo...@iglu.org.il
 Cc: Cmake Mailing List cmake@cmake.org
 Subject: Re: [CMake] How to make sure make test depends on make all
 Date: Tue, 23 Jun 2009 10:57:16 +0200

 On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish shlo...@iglu.org.il
 wrote:
 Hi all!

 I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and
 ran into a
 problem. I want make test (which is a custom target) to depend
 on make
 all, in this codebase:


 I can't say that I understand the error messages you're getting, but it
 is unfortunately *not* possible to make built-in targets like test,
 all and install depend on each other. See for example this bug:

 http://public.kitware.com/Bug/view.php?id=8438


 ___
 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 check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Stop Using MSIE - http://www.shlomifish.org/no-ie/

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to make sure make test depends on make all

2009-06-24 Thread Shlomi Fish
On Tuesday 23 June 2009 11:57:16 Hugo Heden wrote:
 On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish shlo...@iglu.org.il wrote:
  Hi all!
 
  I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and ran into a
  problem. I want make test (which is a custom target) to depend on make
  all, in this codebase:
 
   http://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/

 I can't say that I understand the error messages you're getting, but it is
 unfortunately *not* possible to make built-in targets like test, all
 and install depend on each other. See for example this bug:

 http://public.kitware.com/Bug/view.php?id=8438

Interesting. Is this a bug or a (mis-)feature? If I work on it and contribute 
a patch that will fix it, will it be accepted?

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Rethinking CPAN - http://xrl.us/bjn7p

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] How to make sure make test depends on make all

2009-06-23 Thread Shlomi Fish
Hi all!

I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and ran into a 
problem. I want make test (which is a custom target) to depend on make 
all, in this codebase:

http://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/

I have this code:

{{{
ADD_CUSTOM_TARGET(
test
perl run-tests.pl
)

ADD_DEPENDENCIES(
test
all
)
}}}

However, doing make test after make clean results in:

{{{
shlomi:$trunk/fc-solve/source$ make clean
shlomi:$trunk/fc-solve/source$ make test 
[ 25%] Generating card-test-parse.c  
[ 50%] Building C object t/CMakeFiles/t/card-test-parse.exe.dir/card-test-
parse.c.o   
  
Linking C executable t/card-test-parse.exe  
[ 50%] Built target t/card-test-parse.exe   
[ 75%] Building C object t/CMakeFiles/t/card-test-render.exe.dir/card-test-
render.c.o  
 
Linking C executable t/card-test-render.exe 
[100%] Built target t/card-test-render.exe  
FCS_PATH = /home/shlomi/progs/freecell/trunk/fc-solve/source
t/board-gen.ok  
t/build-process.skipped 
all skipped: Skipping because FCS_TEST_BUILD is not set 
t/card-test-parse...ok  
t/card-test-render..ok  
t/compare-digests-and-lens..sh: 
/home/shlomi/progs/freecell/trunk/fc-solve/source/fc-solve: No such file or 
directory   
close failed in file object destructor: 
Error in sys.excepthook:

Original exception was:
t/compare-digests-and-lens..NOK 1
#   Failed test 'Verifying the solution of deal \#24'
#   at t/compare-digests-and-lens.t line 101.
# Expected Digest: 
ef0fd5fb21649c349a8283553c83502ba831a9cf765f4372bff9243bf399fc15
 
# Got Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  
# Expected Len: 32193   
# Got Len: 0
sh: /home/shlomi/progs/freecell/trunk/fc-solve/source/fc-solve: No such file 
or directory
   
close failed in file object destructor: 
Error in sys.excepthook:
}}}

As you can see - the binaries themselves were not built.

How can I solve this problem?

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
What does Zionism mean? - http://xrl.us/bjn8u

God gave us two eyes and ten fingers so we will type five times as much as we
read.
___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Win2 NSIS Installer says CMake . Setup instead of Program Name

2009-03-24 Thread Shlomi Fish
Hi all,

when trying to build the source in this directory:

http://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/

using CMake-2.6.3/CPack/NSIS and make package on Win32, the package is built 
successfully, but the installed says CMake . Setup as the title and Welcome 
to CMake . Setup. I think I've covered all the relevant NSIS variables.

Here is a screenshot:

http://www.shlomifish.org/Files/files/cmake-installer.png

Have I run into this bug:

http://public.kitware.com/Bug/print_bug_page.php?bug_id=8682

When will it be fixed?

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
What Makes Software Apps High Quality -  http://xrl.us/bkeuk

God gave us two eyes and ten fingers so we will type five times as much as we
read.

___
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 check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Emulating libtool's -version-info with CMake?

2008-12-09 Thread Shlomi Fish
Hi all!

I have a .so library (for Unix/Windows) that I maintain several versions of. 
I'd like to have a symbolic links structure similar to 
libtool's -version-info :

http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html

The problem is that when doing ADD_LIBRARY, the resultant .so is just .so with 
no versions inside. How can I emulate the behaviour of libtool in this regard 
using CMake?

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://xrl.us/bjn7i

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake