Commits

Shlomi Fish  committed bcfd300

Create an aggregate custom target.

This should shorten the build time.

  • Participants
  • Parent commits 5e696e9

Comments (0)

Files changed (1)

File src/wml_include/CMakeLists.txt

 )
 
 SET (dirs_to_make )
+SET (preproc_target_dests )
 
 FOREACH (base ${myfiles})
 
             "--output" "${dest}"
         DEPENDS "${src}"
     )
-    ADD_CUSTOM_TARGET(
-        "preprocess_perl_include_${target_base}" ALL
-        DEPENDS "${dest}"
-    )
+    LIST (APPEND preproc_target_dests "${dest}")
     INSTALL (
-        FILES "${dest}" 
-        DESTINATION "${WML_LIB_DIR}/include/" 
+        FILES "${dest}"
+        DESTINATION "${WML_LIB_DIR}/include/"
         RENAME "${destbase}"
     )
     STRING (REPLACE "/" "::" dest_man "wml/${base}")
     )
 ENDFOREACH(base)
 
+ADD_CUSTOM_TARGET(
+    "preprocess_perl_includes" ALL
+    DEPENDS ${preproc_target_dests}
+)