From 05870dd7a6d30afaee0af3d618072a689b44221f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 25 Oct 2023 18:19:26 -0400 Subject: [PATCH] [maxref] Copy correct thing --- cmake/avendish.max.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/avendish.max.cmake b/cmake/avendish.max.cmake index d69db998..dacfdeaf 100644 --- a/cmake/avendish.max.cmake +++ b/cmake/avendish.max.cmake @@ -88,6 +88,7 @@ function(avnd_make_max) LIBRARY_OUTPUT_DIRECTORY max RUNTIME_OUTPUT_DIRECTORY max MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>" + AVND_C_NAME "${AVND_C_NAME}" ) target_sources( @@ -167,7 +168,7 @@ function(avnd_make_max) if(_dump_path) add_custom_command( TARGET ${AVND_FX_TARGET} - COMMAND json_to_maxref "${AVND_SOURCE_DIR}/examples/Demos/maxref_template.xml" "${_dump_path}" "max/$/,>${AVND_TARGET}.maxref.xml" + COMMAND json_to_maxref "${AVND_SOURCE_DIR}/examples/Demos/maxref_template.xml" "${_dump_path}" "max/$/,>${AVND_C_NAME}.maxref.xml" POST_BUILD ) endif() @@ -230,11 +231,12 @@ function(avnd_create_max_package) endif() set(_external_path $) + get_target_property(_c_name ${_external} AVND_C_NAME) # Copy the doc add_custom_command(TARGET ${_external} POST_BUILD - COMMAND echo "=== copy doc ===" - COMMAND ${CMAKE_COMMAND} -E copy "${_external_path}/*.maxref.xml" "${_pkg}/docs/refpages/" + COMMAND echo "=== copy doc === ${_external_path}/${_c_name}.maxref.xml" + COMMAND ${CMAKE_COMMAND} -E copy "${_external_path}/${_c_name}.maxref.xml" "${_pkg}/docs/refpages/" ) # Copy the external (fairly platform-specific)