Re: [CMake] shared directory with subdirs and custom command

2010-06-04 Thread Michael Hertling
On 06/02/2010 04:23 PM, Doug Reiland wrote: > I am porting a library over to cmake. > This library is built both shared and static AND has several composite > objects that get linked in. > > For example, > > subdir-a had makefile that compiled and linked a1.c a2.c into ../a.o > > top directory l

[CMake] setting xcode's compiler with cmake

2010-06-04 Thread Benson Limketkai
Hi, When I use the Xcode generator, the CMAKE_CXX_COMPILER flag is ignored inside Xcode. It always is at: "System default (GCC 4.2)" when I look at the Compiler Version under the project build settings. I've tried: cmake -G Xcode -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:FILEPATH

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread David Cole
Thanks, Michael and Aaron! I pushed your patch (+ a SetError line) here in CMake 'next' : http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef491f78218e255339278656bf6dc26073fef264 On Fri, Jun 4, 2010 at 11:38 AM, Michael Wild wrote: > The following patch does work for me: > > diff --git a/So

Re: [CMake] install component shared library

2010-06-04 Thread David Ojeda
Excellent! Thank you very much Ryan, that did it... On Jun 4, 2010, at 6:15 PM, Ryan Pavlik wrote: You need multiple component specifications in your install(TARGETS comand - like this: install(TARGETS mylib RUNTIME DESTINATION bin COMPONENT libraries LIBRARY DESTINATION lib COMPONEN

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
I have discovered the problem, and it has nothing to do with CTest or CMake. It had everything to do with our overly-complex build system... but I now understand more about CTest/Dart etc than I did, so thanks for your time! ___ Powered by www.kitware.c

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
We do have a CTestConfig.cmake: set(CTEST_PROJECT_NAME "BRAINS3") set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "testing.psychiatry.uiowa.edu") set(CTEST_DROP_LOCATION "/CDash/submit.php?project=BRAINS3") set(CTEST_DROP_SITE_CDASH TRUE) I ran the c

Re: [CMake] install component shared library

2010-06-04 Thread Ryan Pavlik
You need multiple component specifications in your install(TARGETS comand - like this: install(TARGETS mylib RUNTIME DESTINATION bin COMPONENT libraries LIBRARY DESTINATION lib COMPONENT libraries ARCHIVE DESTINATION lib/static COMPONENT libraries) Ryan On 6/4/10 9:14 AM, David Ojed

Re: [CMake] Using CTest without DART??

2010-06-04 Thread David Cole
What are the contents of your CTestConfig.cmake file? If you are going to run dashboards like this: BUILD COMMAND runcmd ctest -V -D NightlyStart -D NightlyConfigure -D NightlyBuild -D NightlyTest -D NightlySubmit running: ctest -V -D NightlyStart -D NightlyConfigure -D NightlyBuild -D NightlyTest

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
The following patch does work for me: diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 5611527..3b18e0b 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -2629,6 +2629,14 @@ cmFileCommand::HandleDownloadCommand(std::vector return false; } +

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
I'm now finding out that we had include(Dart) in all our Makefiles. I commented that out, and added include(CTest) instead. Then I deleted everything in the build directory, and re-configured. I get these errors still: /scratch/williamsnk/Testing/BRAINS-COMPILE/Linux/DEBUG-lib/CMake-build/bi

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread aaron.meadows
I don't know what options are compiled in for CMake, but it looks like this is the libcurl option required to follow redirects: CURLOPT_FOLLOWLOCATION A parameter set to 1 tells the library to follow any Location: header that the server sends as part of an HTTP header. This means that

Re: [CMake] Using CTest without DART??

2010-06-04 Thread David Cole
Are you doing: include(CTest) in your CMakeLists.txt file? On Fri, Jun 4, 2010 at 10:51 AM, kent williams wrote: > We don't have Dart installed on some machines we want to do testing > on. Consequently including Dart.cmake does nothing to generate > DartConfiguration.tcl. > > If you're not usin

[CMake] Using CTest without DART??

2010-06-04 Thread kent williams
We don't have Dart installed on some machines we want to do testing on. Consequently including Dart.cmake does nothing to generate DartConfiguration.tcl. If you're not using Dart, how do you set things up such that you avoid this error? running: ctest -V -D NightlyStart -D NightlyConfigure -D Nig

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread David Cole
On Fri, Jun 4, 2010 at 8:03 AM, Michael Wild wrote: > The log looks like this (I've put a message("log = ${log}") into > ExternalProject.cmake to get this, since the numeric error code is 0): > > > -- downloading... > src=' > http://downloads.sourceforge.net/project/freefoam/ThirdParty/zlib/

[CMake] install component shared library

2010-06-04 Thread David Ojeda
Hello all, I have a problem using the COMPONENT property of the install command. My CMakeLists.txt has several install commands: # some files... install(FILES ${some_var} DESTINATION include/xxx COMPONENT headers) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/somefile.txt" DESTINATION share/txt

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
The log looks like this (I've put a message("log = ${log}") into ExternalProject.cmake to get this, since the numeric error code is 0): -- downloading... src='http://downloads.sourceforge.net/project/freefoam/ThirdParty/zlib/zlib-1.2.5.tar.gz' dst='/Users/mwild/Projects/FreeFOAM/buil

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread David Cole
I'm pretty sure the original intent was for file(DOWNLOAD ...) to not raise errors so that scripts can analyze status and log and decide what to do next rather than forcing a CMake error... I recently added EXPECTED_MD5 to file(DOWNLOAD in the 'next' branch of CMake. If a download fails when there

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread David Cole
What if you do something this...? What do status and log tell you? set(remote "http://..";) set(local "some file name") file(DOWNLOAD "${remote}" "${local}" STATUS status LOG log) list(GET status 0 status_code) list(GET status 1 status_string) if(NOT status_code EQUAL 0) m

Re: [CMake] Outputting targets to subdirectories

2010-06-04 Thread Ryan Pavlik
Really, the best way to handle this is to set CMAKE_INSTALL_PREFIX to some local directory for testing, and then do an install creating the desired directory structure that way. Ryan On 6/4/10 5:38 AM, Lars Sønderby Jessen wrote: Hi, I have a project where I need to generate 2 target files i

[CMake] Outputting targets to subdirectories

2010-06-04 Thread Lars Sønderby Jessen
Hi, I have a project where I need to generate 2 target files in different folders: /myapp.exe /plugins/myplugin.dll I've created the following CMakeLists.txt: /CMakeLists.txt /plugins/CMakeLists.txt With the following contents: /CMakeLists.txt: cmake_minimum_required(VERSION 2.8) proj

[CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
When downloading something from http://downloads.sourceforge.net/... you always get a 302 redirect to one of the many mirror servers. Unfortunately, it seems that file(DOWNLOAD ...) doesn't follow the redirect, but just stops and leaves an empty file behind. No error, no nothing. Is this intenti