Skip to content

Stop deleting source files #540

@GrayHatter

Description

@GrayHatter
diff --git a/cmake/ApiDsl.cmake b/cmake/ApiDsl.cmake
index 759f7f05..0307a2af 100644
--- a/cmake/ApiDsl.cmake
+++ b/cmake/ApiDsl.cmake
@@ -33,7 +33,7 @@ function(apidsl)
       set(out_file ${CMAKE_SOURCE_DIR}/${dirname}/${filename}.h)
 
       # Run apidsl.
-      add_custom_command(
+      add_custom_target(
         OUTPUT ${out_file}
         COMMAND "${APIDSL}" "${CMAKE_SOURCE_DIR}/${in_file}"
           | "${ASTYLE}" --options="${CMAKE_SOURCE_DIR}/other/astyle/astylerc"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions