MinGW does not need these third-party libraries installed; they are already
available in its ecosystem. This was uncovered through using
`--warn-uninitialized -Werror=dev` with CMake:
CMake Error (dev) at cmd/tools/CMakeLists.txt:460 (install):
uninitialized variable 'GETOPT_RUNTIME_LIBRARIES'
Gitlab: #2291
introduced in Graphviz 4.0.0. #2232
- The CMake build system uses corrected paths to DevIL and FreeType headers and
libraries when discovered.
+- The CMake build system under MinGW no longer attempts to install third party
+ Expat and Getopt libraries.
## [7.0.0] – 2022-10-22
# ===================== Install third party DLLs on Windows ====================
-if(WIN32 AND install_win_dependency_dlls AND EXPAT_FOUND)
+if(WIN32 AND NOT MINGW AND install_win_dependency_dlls AND EXPAT_FOUND)
install(
FILES ${EXPAT_RUNTIME_LIBRARIES}
DESTINATION ${BINARY_INSTALL_DIR}
)
endif()
-if(WIN32 AND install_win_dependency_dlls)
+if(WIN32 AND NOT MINGW AND install_win_dependency_dlls)
install(
FILES ${GETOPT_RUNTIME_LIBRARIES}
DESTINATION ${BINARY_INSTALL_DIR}