[CMake] Search path for find_path() and find_library()

2013-01-03 Thread Daniel Russel
I'm trying to use find_path() and find_library() to detect if a certain library is already in the system and, if not, build it myself. They find functions seem to find files that are located in CMAKE_INSTALL_PREFIX/lib etc (when CMAKE_INSTALL_PREFIX is a non-standard path). I'd kind of like to a

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-03 Thread Bill Hoffman
On 1/3/2013 4:37 PM, Alan W. Irwin wrote: Hi Arjen: The error was that the Microsoft Visual Studio 10.0 compiler failed the initial check of whether it could compile a simple test programme for the "NMake Makefiles" generator case. Recalling that CMake-2.8.10 had a lot of changes to language s

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread Bin Chen
David, CMake generator works fine. In Xcode, I got this error when I click build. Ld /Users/bchen/share/temp/cmake-obj-lib/b-xcode/Debug/t normal x86_64 cd /Users/bchen/share/temp/cmake-obj-lib/src /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cla

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-03 Thread Alan W. Irwin
On 2013-01-03 20:57+0100 Arjen Markus wrote: Hello, here is some further information: Alan Irwin drew my attention to the generator I was using, so instead of "MSYS Makefiles" I tried it with "NMake Makefiles". I did not need to specify the compiler, that was correctly recognised, but nonethele

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread David Cole
On Thu, Jan 3, 2013 at 4:33 PM, Bin Chen wrote: > David, > > > > CMake generator works fine. In Xcode, I got this error when I click build. > > > > Ld /Users/bchen/share/temp/cmake-obj-lib/b-xcode/Debug/t normal x86_64 > > cd /Users/bchen/share/temp/cmake-obj-lib/src > > > /Applications/Xcod

[CMake] adding tests from external projects with superbuild

2013-01-03 Thread Andy Bauer
Hi, For superbuilds, is there a way to add tests that are in external projects to the set of tests that the superbuild runs? My thought was to use a CMake script to run ctest in the external project's build directory but I'm hoping there's something a bit easier. Thanks, Andy -- Powered by www.k

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread David Cole
We have a test of OBJECT_LIBRARY that does work on all our dashboards, including ones running with Xcode. When you say "it doesn't work" -- what do you mean? Do you get some error output? On Thu, Jan 3, 2013 at 3:56 PM, Bin Chen wrote: > Following CMakeLists.txt doesn’t work with Xcode (4.5.2

[CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread Bin Chen
Following CMakeLists.txt doesn't work with Xcode (4.5.2). Is there anyone experienced the same? Thanks! Visual Studio 10 and Linux makefile works fine. cmake_minimum_required ( VERSION 2.8.8 ) project( test ) add_library( a_obj OBJECT t1.c t2.c ) add_library( b_obj OBJECT t3.c t4.c ) add_libra

Re: [CMake] CTest tests time out with CDash submission

2013-01-03 Thread Christopher Mullins
Thanks so much! This appears to work, I really appreciate it. I mistakenly thought ExperimentalMemCheck would simply run all the tests in the category, not making any difference in which checker is used. How this works is a little more clear now. In the future perhaps we'll reopen the discussio

Re: [CMake] CTest tests time out with CDash submission

2013-01-03 Thread David Cole
Why not just run "make Experimental" instead? If your tests already run the checkers that you want, then just running the tests is sufficient. You don't need to run make ExperimentalMemCheck if your checkers run as part of your test suite... Running the MemCheck runs all tests via the memory chec

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-03 Thread Arjen Markus
Hello, here is some further information: Alan Irwin drew my attention to the generator I was using, so instead of "MSYS Makefiles" I tried it with "NMake Makefiles". I did not need to specify the compiler, that was correctly recognised, but nonetheless the configuration step failed, see the attac

Re: [CMake] CTest tests time out with CDash submission

2013-01-03 Thread Christopher Mullins
As a followup, I think I may have found part of the problem. When I run $ ctest -N -VV -D ExperimentalMemCheck, I see test #29 listed as follows: 29: MemCheck command: /usr/bin/valgrind "-q" "--tool=memcheck" "--leak-check=yes" "--show-reachable=yes" "--workaround-gcc296-bugs=yes" "--num-callers=5

Re: [CMake] newbie FindRuby.cmake win7

2013-01-03 Thread Rolf Eike Beer
dario.minonne wrote: > Eike, > Thanx for your prompt reply. > > In my lib I've two libraries > libmsvcrt-ruby191-static.a and libmsvcrt-ruby191.dll.a the names look quite > strange (since in my mind it should be something without a suffix... But > Ruby installer set it in this way). That's probab