Minor cleanup in CMakeLists.txt of src.
@@ -114,10 +114,28 @@ set(TINYSPLINE_R_INTERFACE_FILE "${TINYSPLINE_LIBRARY_OUTPUT_DIRECTORY}/tinyspli
set(TINYSPLINE_DLANG_INTERMEDIATE_FILE "${TINYSPLINE_LIBRARY_OUTPUT_DIRECTORY}/tinyspline_im.d" CACHE INTERNAL "")
-# Add additional files and directories to delete with 'cmake --build . --target clean'.
-set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
- "${TINYSPLINE_CSHARP_SOURCE_DIRECTORY};${TINYSPLINE_CSHARP_INTERFACE_FILE};${TINYSPLINE_DLANG_SOURCE_DIRECTORY};${TINYSPLINE_DLANG_INTERFACE_FILE};${TINYSPLINE_DLANG_INTERMEDIATE_FILE};${TINYSPLINE_JAVA_SOURCE_DIRECTORY};${TINYSPLINE_JAVA_INTERFACE_FILE};${TINYSPLINE_OCTAVE_SOURCE_DIRECTORY};${TINYSPLINE_LUA_SOURCE_DIRECTORY};${TINYSPLINE_PHP_SOURCE_DIRECTORY};${TINYSPLINE_PHP_INTERFACE_FILE};${TINYSPLINE_PYTHON_SOURCE_DIRECTORY};${TINYSPLINE_PYTHON_INTERFACE_FILE};${TINYSPLINE_R_SOURCE_DIRECTORY};${TINYSPLINE_R_INTERFACE_FILE};${TINYSPLINE_RUBY_SOURCE_DIRECTORY}"
+# Add additional files and directories to delete with
+# 'cmake --build . --target clean'.
+list(APPEND TINYSPLINE_ADDITIONAL_MAKE_CLEAN_FILES
+ ${TINYSPLINE_CSHARP_SOURCE_DIRECTORY}
+ ${TINYSPLINE_CSHARP_INTERFACE_FILE}
+ ${TINYSPLINE_DLANG_SOURCE_DIRECTORY}
+ ${TINYSPLINE_DLANG_INTERFACE_FILE}
+ ${TINYSPLINE_DLANG_INTERMEDIATE_FILE}
+ ${TINYSPLINE_JAVA_SOURCE_DIRECTORY}
+ ${TINYSPLINE_JAVA_INTERFACE_FILE}
+ ${TINYSPLINE_LUA_SOURCE_DIRECTORY}
+ ${TINYSPLINE_OCTAVE_SOURCE_DIRECTORY}
+ ${TINYSPLINE_PHP_SOURCE_DIRECTORY}
+ ${TINYSPLINE_PHP_INTERFACE_FILE}
+ ${TINYSPLINE_PYTHON_SOURCE_DIRECTORY}
+ ${TINYSPLINE_PYTHON_INTERFACE_FILE}
+ ${TINYSPLINE_R_SOURCE_DIRECTORY}
+ ${TINYSPLINE_R_INTERFACE_FILE}
+ ${TINYSPLINE_RUBY_SOURCE_DIRECTORY}
)
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
+ "${TINYSPLINE_ADDITIONAL_MAKE_CLEAN_FILES}")
