Revision: 42065
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42065&view=rev
Author:   starseeker
Date:     2011-01-10 23:33:46 +0000 (Mon, 10 Jan 2011)

Log Message:
-----------
Try moving the generated script files into the bin dir - this should, in 
theory, be the last thing that was writing back to the source tree during 
build.  Will need to try in an svn or git repository with no ignore settings.

Modified Paths:
--------------
    brlcad/branches/cmake/src/tclscripts/CMakeLists.txt

Modified: brlcad/branches/cmake/src/tclscripts/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/tclscripts/CMakeLists.txt 2011-01-10 23:03:04 UTC 
(rev 42064)
+++ brlcad/branches/cmake/src/tclscripts/CMakeLists.txt 2011-01-10 23:33:46 UTC 
(rev 42065)
@@ -2,22 +2,22 @@
 
 MACRO(pkgIndex_BUILD name srcdir targetdir)
        ADD_CUSTOM_COMMAND(
-               OUTPUT ${srcdir}/pkgIndex.tcl
-               COMMAND btclsh ${CMAKE_SOURCE_DIR}/src/tclscripts/ampi.tcl 
${srcdir}
+               OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl
+               COMMAND btclsh ${CMAKE_SOURCE_DIR}/src/tclscripts/ampi.tcl 
${srcdir} && ${CMAKE_COMMAND} -E rename ${srcdir}/pkgIndex.tcl 
${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl
                DEPENDS btclsh
                )
-       ADD_CUSTOM_TARGET(${name}_pkgIndex.tcl ALL DEPENDS 
${srcdir}/pkgIndex.tcl)
-       INSTALL(FILES ${srcdir}/pkgIndex.tcl DESTINATION 
${BRLCAD_INSTALL_DATA_DIR}/${targetdir})
+       ADD_CUSTOM_TARGET(${name}_pkgIndex.tcl ALL DEPENDS 
${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl)
+       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl DESTINATION 
${BRLCAD_INSTALL_DATA_DIR}/${targetdir})
 ENDMACRO(pkgIndex_BUILD name srcdir targetdir)
 
 MACRO(tclIndex_BUILD name srcdir targetdir)
        ADD_CUSTOM_COMMAND(
-               OUTPUT ${srcdir}/tclIndex
-               COMMAND btclsh ${CMAKE_SOURCE_DIR}/src/tclscripts/ami.tcl 
${srcdir}
+               OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tclIndex
+               COMMAND btclsh ${CMAKE_SOURCE_DIR}/src/tclscripts/ami.tcl 
${srcdir} && ${CMAKE_COMMAND} -E rename ${srcdir}/tclIndex 
${CMAKE_CURRENT_BINARY_DIR}/tclIndex
                DEPENDS btclsh
                )
-       ADD_CUSTOM_TARGET(${name}_tclIndex ALL DEPENDS ${srcdir}/tclIndex)
-       INSTALL(FILES ${srcdir}/tclIndex DESTINATION 
${BRLCAD_INSTALL_DATA_DIR}/${targetdir})
+       ADD_CUSTOM_TARGET(${name}_tclIndex ALL DEPENDS 
${CMAKE_CURRENT_BINARY_DIR}/tclIndex)
+       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tclIndex DESTINATION 
${BRLCAD_INSTALL_DATA_DIR}/${targetdir})
 ENDMACRO(tclIndex_BUILD name srcdir targetdir)
 
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to