From 04b6d1c1cfac0aabafecf8f4269908da6270cd69 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 14 May 2020 10:13:50 +0100 Subject: [PATCH] CMake: Add diagnostic output while building juceaide --- extras/Build/juceaide/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/extras/Build/juceaide/CMakeLists.txt b/extras/Build/juceaide/CMakeLists.txt index 6a4b20ac7c..fb51feebd8 100644 --- a/extras/Build/juceaide/CMakeLists.txt +++ b/extras/Build/juceaide/CMakeLists.txt @@ -47,6 +47,8 @@ else() unset(ENV{CC}) unset(ENV{CXX}) + message(STATUS "Configuring juceaide") + # Looks like we're boostrapping, reinvoke CMake execute_process(COMMAND "${CMAKE_COMMAND}" "." @@ -61,9 +63,11 @@ else() RESULT_VARIABLE result_variable) if(result_variable) - message(FATAL_ERROR "Failed to configure tools\n${command_output}") + message(FATAL_ERROR "Failed to configure juceaide\n${command_output}") endif() + message(STATUS "Building juceaide") + execute_process(COMMAND "${CMAKE_COMMAND}" --build "${JUCE_BINARY_DIR}/tools" --config Debug @@ -72,9 +76,11 @@ else() RESULT_VARIABLE result_variable) if(result_variable) - message(FATAL_ERROR "Failed to build tools\n${command_output}") + message(FATAL_ERROR "Failed to build juceaide\n${command_output}") endif() + message(STATUS "Exporting juceaide") + # This will be generated by the recursive invocation of CMake (above) include("${JUCE_BINARY_DIR}/tools/JUCEToolsExport.cmake")