From: Magnus Jacobsson Date: Tue, 4 Jan 2022 08:02:35 +0000 (+0100) Subject: CMake: detect "dot -c" failure when running cpack X-Git-Tag: 3.0.0~82^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=597cac607c723fb78d06cd1d3303fb088f141c7e;p=graphviz CMake: detect "dot -c" failure when running cpack This reveals this error when "dot -c" is executed when running cpack on MinGW: CPack: Create package using ZIP CPack: Install projects CPack: - Install project: Graphviz [] CMake Error at C:/Users/magja/graphviz2/cmake/configure_plugins.cmake:38 (execute_process): execute_process abnormal exit: Access violation Call Stack (most recent call first): C:/Users/magja/graphviz2/build/cmd/dot/cmake_install.cmake:91 (include) C:/Users/magja/graphviz2/build/cmd/cmake_install.cmake:42 (include) C:/Users/magja/graphviz2/build/cmake_install.cmake:60 (include) CPack Error: Error when generating package: Graphviz See https://gitlab.com/graphviz/graphviz/-/issues/2176. --- diff --git a/cmake/configure_plugins.cmake b/cmake/configure_plugins.cmake index 4427665cf..e72984f50 100644 --- a/cmake/configure_plugins.cmake +++ b/cmake/configure_plugins.cmake @@ -35,4 +35,5 @@ endif() execute_process( COMMAND ${ROOT}/bin/dot -c + COMMAND_ERROR_IS_FATAL ANY )