Revision: 42133
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42133&view=rev
Author:   starseeker
Date:     2011-01-12 05:35:35 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
Only do the generation once.  If we really want to do this right we need some 
kind of custom commands, targets, output files to signify completed commands, 
etc - not worth it, and this avoids repeated processing we don't need.

Modified Paths:
--------------
    brlcad/branches/cmake/src/other/tcl/doc/CMakeLists.txt
    brlcad/branches/cmake/src/other/tk/doc/CMakeLists.txt

Modified: brlcad/branches/cmake/src/other/tcl/doc/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/other/tcl/doc/CMakeLists.txt      2011-01-12 
05:28:57 UTC (rev 42132)
+++ brlcad/branches/cmake/src/other/tcl/doc/CMakeLists.txt      2011-01-12 
05:35:35 UTC (rev 42133)
@@ -5,7 +5,7 @@
 FIND_PROGRAM(SH_EXEC NAMES sh dash bash DOC "path to shell executable")
 FIND_PROGRAM(SED_EXEC NAMES sed DOC "path to sed executable")
 
-IF(SED_EXEC AND SH_EXEC)
+IF(SED_EXEC AND SH_EXEC AND NOT TCLMAN_GENERATED)
        MESSAGE("Generating Tcl man pages...")
 
        FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man1)
@@ -250,5 +250,7 @@
        ENDFOREACH(manfile ${tcl_MANN})
        FILE(GLOB TCL_MANN "${CMAKE_CURRENT_BINARY_DIR}/mann/*")
        INSTALL(FILES ${TCL_MANN} DESTINATION 
${${CMAKE_PROJECT_NAME}_INSTALL_MAN_DIR}/mann)
+       
+       SET(TCLMAN_GENERATED 1 CACHE BOOL "Flag signifying Tcl man pages are 
generated" FORCE)
 
-ENDIF(SED_EXEC AND SH_EXEC)
+ENDIF(SED_EXEC AND SH_EXEC AND NOT TCLMAN_GENERATED)

Modified: brlcad/branches/cmake/src/other/tk/doc/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/other/tk/doc/CMakeLists.txt       2011-01-12 
05:28:57 UTC (rev 42132)
+++ brlcad/branches/cmake/src/other/tk/doc/CMakeLists.txt       2011-01-12 
05:35:35 UTC (rev 42133)
@@ -5,7 +5,7 @@
 FIND_PROGRAM(SH_EXEC NAMES sh dash bash DOC "path to shell executable")
 FIND_PROGRAM(SED_EXEC NAMES sed DOC "path to sed executable")
 
-IF(SED_EXEC AND SH_EXEC)
+IF(SED_EXEC AND SH_EXEC AND NOT TKMAN_GENERATED)
        MESSAGE("Generating Tk man pages...")
 
        FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man1)
@@ -226,4 +226,6 @@
        INSTALL(FILES ${TK_MANN} DESTINATION
                ${${CMAKE_PROJECT_NAME}_INSTALL_MAN_DIR}/mann)
 
-ENDIF(SED_EXEC AND SH_EXEC)
+       SET(TKMAN_GENERATED 1 CACHE BOOL "Flag signifying Tk man pages are 
generated" FORCE)
+
+ENDIF(SED_EXEC AND SH_EXEC AND NOT TKMAN_GENERATED)


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
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