[CMake] Debugging the ExternalProject_Add download step

2011-12-02 Thread Lori Pritchett-Sheats
I'm using the ExternalProject_Add function and I've run into a problem downloading a tar file. It creates a zero length file and fails when the MD5 check fails. I have logging active, but I'm not seeing anything useful. I have other tar files from external sites that are downloaded successfully

[CMake] ExternalProject and clean targets

2011-10-12 Thread Lori Pritchett-Sheats
I'm building external packages in my CMake system using the ExternalPackages_Add function. When a package is built this way and I execute a 'make clean' at the top of my build tree, all targets are cleaned including the external packages. Is there a way to remove the external package targets

[CMake] Scope of find_package inside a function block

2011-09-22 Thread Lori Pritchett-Sheats
I was wondering what the scope of the variables set in a FindXXX.cmake file is and does find_package_handle_standard_args change that scope. For example, I create a FindBar.cmake file that sets Bar_INCLUDE_DIR, Bar_LIBRARY, Bar_INCLUDE_DIRS and Bar_LIBRARIES, and calls find_package_handle_stan

Re: [CMake] ExternalProject_Add and Dependent Targets

2011-09-22 Thread Lori Pritchett-Sheats
David Cole wrote: On Wed, Sep 21, 2011 at 11:45 AM, Lori Pritchett-Sheats wrote: Reading the documentation it is not clear how the DEPENDS option works in ExternalProject_Add. For example, I add HDF5 to my build and HDF5 depends on zlib the following doesn't work find_package

[CMake] ExternalProject_Add and Dependent Targets

2011-09-21 Thread Lori Pritchett-Sheats
Reading the documentation it is not clear how the DEPENDS option works in ExternalProject_Add. For example, I add HDF5 to my build and HDF5 depends on zlib the following doesn't work find_package(ZLIB) add_library(zlib UNKNOWN IMPORTED) set_target_properties(zlib PROPERTIES IMPORTED_LOCATION

[CMake] UseSWIG, Python, SWIG_LINK_LIBRARIES and linking errors

2011-09-14 Thread Lori Pritchett-Sheats
I'm trying to build a very simple example from the SWIG documentation http://www.swig.org/Doc2.0/SWIGDocumentation.html#Introduction_build_system There is a code snippet that demonstrates how to use SWIG in a CMake build system, but I can not get this simple example to build on a Linux platform

[CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread Lori Pritchett-Sheats
My project needs to create and install a Makefile that other client projects could import to link against our project. T I have a simple template file that generates an exported Makefile using the configure_file command, however I'm struggling with how to create a variable that contains all th

[CMake] Creating dependencies after adding an external project?

2011-04-20 Thread Lori Pritchett-Sheats
I have a project that depends on HDF5. A user can either specify an existing installation and thus use a find_package or choose to have HDF5 built with the project. I've been using Paraview as a template to implement this but I can't seem to get the dependencies for my project defined correctl

Re: [CMake] Status of FindHDF5.cmake in CMake?

2011-04-14 Thread Lori Pritchett-Sheats
Hi I had not seen a reply to your question and I thought I give my $0.02. I'm fairly new to CMake and I've run into this problem as well. The only solution I came up with was calling find_package(HDF5 ... *) again if it fails the first time. On my project, I search for HDF5 using find_packag

[CMake] Parsing library list with keywords 'debug', 'optimized' and 'general' present

2011-03-02 Thread Lori Pritchett-Sheats
After reading the documentation, target_link_libraries allows a user to pass a list with keywords debug, optimized and general to indicate which set of libraries to use when CMAKE_BUILD_TYPE is set. Is there a command, function or macro that parses lists that have these keywords and returns the