[CMake] ExternalProject_Add + issues with env & auto-conf.
Bill Hoffman
bill.hoffman at kitware.com
Tue Oct 19 15:58:48 EDT 2010
Try the 2.8.3 release candidate.
In 2.8.2 the untar did not preserve file times, and this could cause
auto-make to rerun when it really did not need to.
-Bill
On 10/19/2010 3:21 PM, Tim St. Clair wrote:
> I've been able to consistently repro an issue using
> ExternalProject_Add w/a configure build of cmake v.s. the i386
> binaries online shows an issue whenever a it tries to call auto-conf
> or auto-make as if the environment is hosed. When I use the stock
> i386 binaries I do not see this issue and I'm able to build external
> projects.
>
> The test example in question is the following:
>
>
> set (LIBXML2_VER libxml2-2.7.3 )
> ExternalProject_Add( libxml2
> DEPENDS zlib
> PREFIX ${EXTERNAL_BUILD_PREFIX}/${LIBXML2_VER}
> #-- Download Step ----------
> DOWNLOAD_COMMAND wget -N
> http://parrot.cs.wisc.edu/externals/${LIBXML2_VER}.tar.gz ${CMD_TERM}
> DOWNLOAD_DIR ${EXTERNAL_DL}
> URL http://parrot.cs.wisc.edu/externals/${LIBXML2_VER}.tar.gz
> #--Configure step ----------
> CONFIGURE_COMMAND ./configure --prefix=${EXTERNAL_STAGE}
> --disable-shared --with-zlib=${EXTERNAL_STAGE}
> #--Build Step ----------
> BUILD_COMMAND make
> BUILD_IN_SOURCE 1
> #--install Step ----------
> INSTALL_DIR ${EXTERNAL_STAGE}
> INSTALL_COMMAND make install )
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list