Revision: 40266 http://brlcad.svn.sourceforge.net/brlcad/?rev=40266&view=rev Author: starseeker Date: 2010-08-20 04:25:08 +0000 (Fri, 20 Aug 2010)
Log Message: ----------- Closest thing so far to a working ExternalProject_ADD command - it appears to do the configure, make and make install PRIOR to building anything else, which means things like TCL_LIBRARY will need to point to the installed location of the library. Modified Paths: -------------- brlcad/branches/cmake/CMakeLists.txt Modified: brlcad/branches/cmake/CMakeLists.txt =================================================================== --- brlcad/branches/cmake/CMakeLists.txt 2010-08-20 03:25:35 UTC (rev 40265) +++ brlcad/branches/cmake/CMakeLists.txt 2010-08-20 04:25:08 UTC (rev 40266) @@ -720,8 +720,24 @@ # Programs, not a library - needs libutahrle, but the "check for system install" logic # will be different here. Ignore for now, revisit later. -INCLUDE(${BRLCAD_CMAKE_DIR}/FindTCL.cmake) +#INCLUDE(${BRLCAD_CMAKE_DIR}/FindTCL.cmake) +include(ExternalProject) +ExternalProject_Add( + tcl + DOWNLOAD_COMMAND "" + PREFIX ${BRLCAD_BINARY_DIR} + SOURCE_DIR ${BRLCAD_SOURCE_DIR}/src/other/tcl/unix + CONFIGURE_COMMAND autoconf -I ${BRLCAD_SOURCE_DIR}/src/other/tcl/unix -o + ${BRLCAD_SOURCE_DIR}/src/other/tcl/unix/configure + ${BRLCAD_SOURCE_DIR}/src/other/tcl/unix/configure.in && mkdir -p + ${BRLCAD_BINARY_DIR}/src/other/tcl/ && cd + ${BRLCAD_BINARY_DIR}/src/other/tcl/ && + <SOURCE_DIR>/configure --prefix=${BRLCAD_PREFIX} + BUILD_COMMAND cd ${BRLCAD_BINARY_DIR}/src/other/tcl/ && make + INSTALL_COMMAND cd ${BRLCAD_BINARY_DIR}/src/other/tcl/ && make install +) + # Tk #include(ExternalProject) #ExternalProject_Add( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits