[CMake] ExternalProject DEPENDS bug?

Rolf Eike Beer eike at sf-mail.de
Tue Jan 29 13:30:20 EST 2013


Pere Mato Vila wrote:
> Hi,
> 
>   It seems that the DEPENDS option in the ExternalProejct_Add() requires an
> external project target and not any other kind of target.  In the page
> http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html
> says:
> 
> "The DEPENDS argument takes the names of other CMake targets that must build
> first before the current external project will build successfully. These
> could be library, executable target, external project, or CMake custom
> target names. ..."
> 
> The following CMake project fails to configure :
> 
> cmake_minimum_required(VERSION 2.8)
> include(ExternalProject)
> add_custom_target(PackA  COMMENT "PackA package already existing ")
> ExternalProject_Add( PackB SOURCE_DIR . DEPENDS PackA )
> 
> with the error:
> 
>   External project "PackA" has no stamp_dir
> Call Stack (most recent call first):
>   /Volumes/Macintosh HD/Applications/CMake
> 2.8-10.app/Contents/share/cmake-2.8/Modules/ExternalProject.cmake:932
> (ExternalProject_Get_Property) /Volumes/Macintosh HD/Applications/CMake
> 2.8-10.app/Contents/share/cmake-2.8/Modules/ExternalProject.cmake:1488
> (_ep_get_step_stampfile) /Volumes/Macintosh HD/Applications/CMake
> 2.8-10.app/Contents/share/cmake-2.8/Modules/ExternalProject.cmake:1702
> (_ep_add_configure_command) CMakeLists.txt:6 (ExternalProject_Add)
> 
> -- Configuring incomplete, errors occurred!

This should already be fixed:

commit c0f1af926feb3494ada1a311441ea144926157a2
Author: Brad King <brad.king at kitware.com>
Date:   Wed Jan 16 09:10:48 2013 -0500

    ExternalProject: Allow DEPENDS on normal targets (#13849)

This commit will be in 2.8.11. Please use a recent nightly build and verify if 
it is working for you now.

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130129/280a0659/attachment.pgp>


More information about the CMake mailing list