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)

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

Re: [CMake] include file

2009-08-30 Thread Philip Lowman
On Sat, Aug 29, 2009 at 8:01 PM, Alex H aditya15...@hotmail.com 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:

[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

[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 (

Re: [CMake] Issue with CPack and component installation

2009-08-30 Thread Eric Noulard
2009/8/30 Antonio Bulgheroni antonio.bulgher...@gmail.com: [...] (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

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 supposed

[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

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] 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] 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

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

[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 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_ARCHITECTURES

Re: [CMake] Fwd: weird output with ctest

2009-08-30 Thread Philip Lowman
On Sun, Aug 30, 2009 at 9:30 PM, John Drescher dresche...@gmail.com 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

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 executables

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

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

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