From aeb569ba4ca37ede707ff617236607c9a62e7142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Mon, 25 Nov 2024 13:34:58 -0500 Subject: [PATCH] max: try to debug why json_to_maxref not always foujnd --- cmake/avendish.cmake | 2 +- cmake/avendish.max.cmake | 1 + cmake/avendish.tools.cmake | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/avendish.cmake b/cmake/avendish.cmake index a5729393..9dc9aad7 100644 --- a/cmake/avendish.cmake +++ b/cmake/avendish.cmake @@ -126,6 +126,7 @@ add_library(avnd_dummy_lib OBJECT "${AVND_SOURCE_DIR}/src/dummy.cpp") include(avendish.dependencies) include(avendish.disableexceptions) include(avendish.sources) +include(avendish.tools) include(avendish.ui.qt) include(avendish.dump) @@ -138,7 +139,6 @@ include(avendish.clap) include(avendish.ossia) include(avendish.standalone) include(avendish.example) -include(avendish.tools) # Used for getting completion in IDEs... function(avnd_register) diff --git a/cmake/avendish.max.cmake b/cmake/avendish.max.cmake index c4150d30..ea6e0b87 100644 --- a/cmake/avendish.max.cmake +++ b/cmake/avendish.max.cmake @@ -261,6 +261,7 @@ function(avnd_create_max_package) # Copy the doc if(_maxref_xml) + add_dependencies("${_external}" "dump_maxref_${_external}") add_custom_command(TARGET ${_external} POST_BUILD COMMAND echo "=== copy doc === ${_maxref_xml}" COMMAND ${CMAKE_COMMAND} -E copy "${_maxref_xml}" "${_pkg}/docs/refpages/" diff --git a/cmake/avendish.tools.cmake b/cmake/avendish.tools.cmake index 649a354f..f6d85f62 100644 --- a/cmake/avendish.tools.cmake +++ b/cmake/avendish.tools.cmake @@ -1,6 +1,6 @@ - # Demo: dump all the known metadata. if(TARGET pantor::inja AND TARGET nlohmann_json::nlohmann_json) + message("Building json_to_maxref") add_executable(json_to_maxref examples/Demos/JSONToMaxref.cpp) if(NOT MSVC) target_compile_options(json_to_maxref PRIVATE -std=c++20)