]> granicus.if.org Git - graphviz/commitdiff
CMake: detect "dot -c" failure when running cpack
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 4 Jan 2022 08:02:35 +0000 (09:02 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:26 +0000 (09:35 +0100)
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.

cmake/configure_plugins.cmake

index 4427665cfbfb1eca4ecf5913de93577844683b6e..e72984f508ace64b81cd351813b583a010fbcd98 100644 (file)
@@ -35,4 +35,5 @@ endif()
 
 execute_process(
   COMMAND ${ROOT}/bin/dot -c
+  COMMAND_ERROR_IS_FATAL ANY
 )