[Orxonox-commit 712] r3244 - trunk/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Jun 28 23:23:24 CEST 2009


Author: rgrieder
Date: 2009-06-28 23:23:24 +0200 (Sun, 28 Jun 2009)
New Revision: 3244

Modified:
   trunk/cmake/GenerateToluaBindings.cmake
Log:
Build bugfix in GenerateToluaBindings.cmake: we have to supply a language for each implicit dependency.

Modified: trunk/cmake/GenerateToluaBindings.cmake
===================================================================
--- trunk/cmake/GenerateToluaBindings.cmake	2009-06-28 16:22:40 UTC (rev 3243)
+++ trunk/cmake/GenerateToluaBindings.cmake	2009-06-28 21:23:24 UTC (rev 3244)
@@ -52,10 +52,11 @@
     SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w")
   ENDIF()
 
-  # Create temporary package file
+  # Create temporary package file and implicit dependencies
   FILE(REMOVE ${_tolua_pkgfile})
   FOREACH(_tolua_inputfile ${_tolua_inputfiles})
     FILE(APPEND ${_tolua_pkgfile} "\$cfile \"${_tolua_inputfile}\"\n")
+    LIST(APPEND _implicit_dependencies CXX ${_tolua_inputfile})
   ENDFOREACH(_tolua_inputfile)
 
   ADD_CUSTOM_COMMAND(
@@ -66,9 +67,9 @@
                                -H ${_tolua_hfile}
                                -s ${TOLUA_PARSER_SOURCE}
                                   ${_tolua_pkgfile}
-    DEPENDS              ${TOLUA_PARSER_DEPENDENCIES}
-    IMPLICIT_DEPENDS CXX ${_tolua_inputfiles}
-    WORKING_DIRECTORY    ${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}
+    DEPENDS           ${TOLUA_PARSER_DEPENDENCIES}
+    IMPLICIT_DEPENDS  ${_implicit_dependencies}
+    WORKING_DIRECTORY ${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}
     COMMENT "Generating tolua bind files for package ${_tolua_package}"
   )
 ENDFUNCTION(GENERATE_TOLUA_BINDINGS)




More information about the Orxonox-commit mailing list