[CMake] ExternalProject_Add + issues with env & auto-conf.

Tim St. Clair timothysc at gmail.com
Tue Oct 19 15:21:26 EDT 2010


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 )
-- 
Cheers,
Timothy St. Clair


More information about the CMake mailing list