Re: [CMake] help with variable usage in target_link_libraries

2009-08-30 Thread Eike Kroemer
Hi Eric, > Variable values shoud be retrieve with curly brace, i.e. > > $LIBS --> ${LIBS} Yick, I had done that but not cited it correctly in my mail, sorry about that. > Then when you have a list of something you usually use LIST(APPEND > > LIST(APPEND LIBS "libN") > > even if > > SET(LIBS "

Re: [CMake] dependency in custom command?

2009-08-30 Thread Michael Wild
On 31. Aug, 2009, at 7:08, King, Steven R wrote: Can't you put all executables and shared libraries in one directory, so they are all local to each other? In the top level CMakeLists.txt file just add SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) SET(CMAKE_LIBRARY_OUTPUT_DIRECTO

Re: [CMake] help with variable usage in target_link_libraries

2009-08-30 Thread Eric Noulard
2009/8/31 Eike Kroemer : > Hi there, > > using cmake-2.6.4-Linux-i386, I'd like to use > >  set(LIBS lib1) >  set(LIBS "$LIBS lib2") >  [...] >  set(LIBS "$LIBS libN") > >  target_link_libraries(target $LIBS) > > instead of writing explicitely > >  target_link_libraries(target lib1 lib2 [...] libN)

[CMake] help with variable usage in target_link_libraries

2009-08-30 Thread Eike Kroemer
Hi there, using cmake-2.6.4-Linux-i386, I'd like to use set(LIBS lib1) set(LIBS "$LIBS lib2") [...] set(LIBS "$LIBS libN") target_link_libraries(target $LIBS) instead of writing explicitely target_link_libraries(target lib1 lib2 [...] libN) but while cmake gives no error messages,

Re: [CMake] Issue with CPack and component installation

2009-08-30 Thread Eric Noulard
2009/8/31 Antonio Bulgheroni : > Dear Eric, > >   thanks for the fast reply. > > > In the example the selected generator for the Mac was PackageMaker, and this > is what I'm using. Yes, it is working w/o components. Then I think the PackageMaker generator maintainer/contirbutors may be the right p

Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only

2009-08-30 Thread Eike Kroemer
Hi Marcel, [...] > See tiny example below (hope this helps). Yes, it does, thank you very much for the detailed walkthrough. Based on your suggestion I've experimented a bit and found that my key issues were: - introducing a separated build-directory structure - should have done that long befo

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
MAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2 Yep, there is the problem. CMake looks in the /Developer/SDKs for all available SDKs and then greps for some information to try and figure out which one to use. Get rid of anything OTHER than official Apple SDKs that are in /Develo

Re: [CMake] Issue with CPack and component installation

2009-08-30 Thread Antonio Bulgheroni
Dear Eric, thanks for the fast reply. In the example the selected generator for the Mac was PackageMaker, and this is what I'm using. Yes, it is working w/o components. Cheers, toto -- Antonio Bulgheroni, PhD http://unico-lab.blogspot.com “There are 10 ki

Re: [CMake] dependency in custom command?

2009-08-30 Thread King, Steven R
> Can't you put all executables and shared libraries in one directory, so they > are all local to each other? > In the top level CMakeLists.txt file just add > SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) > SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) > > The executab

Re: [CMake] Fwd: weird output with ctest

2009-08-30 Thread Philip Lowman
On Sun, Aug 30, 2009 at 9:30 PM, John Drescher wrote: > > Well problem is why doesn't it print the std::cout that I've put inside > > main? while it's running main > > > > I believe not printing any stdout from your application is intentional > so not to interfere with the CTest output. I prefer

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Celil Rufat
> this person also has the problem < > http://stackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard> > > Yup, that was also me :-) > Please post the following variables from your project after a first run of > cmake on your project from a clean build directory. > > CMAKE_OSX_ARCHIT

[CMake] How to Redirect Output and Ignore Command Failures

2009-08-30 Thread Mike Howells
I'm creating a custom target to get XML output from my Boost.test test cases for use in Hudson, and I want the output for all tests to be generated even if some fail. Unfortunately there are two blockers: 1. cmake makes the first test case to fail stop the build. 2. cmake offers no way

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
Just to follow up a bit more. The "innards" that I was referring to are NOT in CMake 2.6.4 but in CMake CVS. If you can, checkout the latest CMake from CVS build it and then see if your project will configure. Mike On Aug 30, 2009, at 9:48 PM, Michael Jackson wrote: I don't think CMake aut

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
I don't think CMake automatically builds Universal Binaries. CMake will look at the arch of the host system and try to build that arch, which is i386 on intel or "ppc" on anything else. Unless there is something in your project where you are setting the CMAKE_OSX_ARCHETECTURES to i386;ppc t

[CMake] Fwd: weird output with ctest

2009-08-30 Thread John Drescher
> Well problem is why doesn't it print the std::cout that I've put inside > main? while it's running main > I believe not printing any stdout from your application is intentional so not to interfere with the CTest output. I prefer it this way. There could be a way to activate this, I do not know.

Re: [CMake] weird output with ctest

2009-08-30 Thread Alex H
Well problem is why doesn't it print the std::cout that I've put inside main? while it's running main > Date: Sun, 30 Aug 2009 17:20:26 -0400 > Subject: Re: [CMake] weird output with ctest > From: dresche...@gmail.com > To: aditya15...@hotmail.com; cmake@cmake.org > >> I have the following

[CMake] cmake on Snow Leopard

2009-08-30 Thread Celil Rufat
Hello, I recently installed Snow Leopard, and I am having trouble building my application with CMake. The Unix Makefile generator fails while checking for a working gcc compiler with the following output: CMake Error at /Applications/CMake 2.6-4.app/Contents/share/cmake-2.6/Modules/CMakeTestCComp

Re: [CMake] weird output with ctest

2009-08-30 Thread John Drescher
> I have the following command in my CMakeLists.txt and I run the test using > the command ctest -VV -R test. However the test results doesn't print > anything that I defined on the test code, it just shows the test passed. > add_test(test ../build/gbc 0.1 0.3 0.5 0.7 0.9) > That is all it is suppo

Re: [CMake] Issue with CPack and component installation

2009-08-30 Thread Eric Noulard
2009/8/30 Antonio Bulgheroni : [...] > (http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack) for making > component installation using CPack, but it was unsuccessful. I was thinking > of a problem with my configuration and then I downloaded and compiled the > example given on the Wiki

[CMake] Issue with CPack and component installation

2009-08-30 Thread Antonio Bulgheroni
Dear all, I'm quite new to the CMake world and even if I like it very much, there are still a few things quite mysterious to me. I've just started the development of a new project and I would like to exploit all the benefit coming from CMake & Co. I was following the HowTo ( http://www.cmake.o

[CMake] weird output with ctest

2009-08-30 Thread Alex H
I have the following command in my CMakeLists.txt and I run the test using the command ctest -VV -R test. However the test results doesn't print anything that I defined on the test code, it just shows the test passed. add_test(test ../build/gbc 0.1 0.3 0.5 0.7 0.9) When I run ./gbc 0.1 0.3 0.5

Re: [CMake] triggering rebuild on windows

2009-08-30 Thread Philip Lowman
On Tue, Aug 25, 2009 at 1:32 PM, j s wrote: > I am using the Visual Studio generator from the cmake binary distribution. > If I change flags using ADD_DEFINITIONS, I notice that it doesn't trigger a > rebuild of all the affected files. > > Is this by design? I've known and worked around this li

Re: [CMake] include file

2009-08-30 Thread Philip Lowman
On Sat, Aug 29, 2009 at 8:01 PM, Alex H wrote: > I have a test.cpp file and the test file needs to be linked with another > .h file... they are all in the same directory, however when I run the > Makefile that is generated by CMake, it shows this error: > CMakeFiles/bcoin.dir/test.cpp.o: In func

Re: [CMake] include file

2009-08-30 Thread Michael Wild
On 30. Aug, 2009, at 2:01, Alex H wrote: I have a test.cpp file and the test file needs to be linked with another .h file... they are all in the same directory, however when I run the Makefile that is generated by CMake, it shows this error: CMakeFiles/bcoin.dir/test.cpp.o: In function `ma

Re: [CMake] An issue with snow leopard?

2009-08-30 Thread Michael Wild
$ grep -r Wno-long-double cmake-2.6.4 cmake-2.6.4/Utilities/cmcurl/CMakeLists.txt: CHECK_C_COMPILER_FLAG(- Wno-long-double HAVE_C_FLAG_Wno_long_double) cmake-2.6.4/Utilities/cmcurl/CMakeLists.txt: SET(MPRINTF_COMPILE_FLAGS "${MPRINTF_COMPILE_FLAGS} -Wno-long-double") cmake-2.6.4/Utilities