list(APPEND CMAKE_PREFIX_PATH ${WINDOWS_DEPENDENCY_DIR})
list(APPEND CMAKE_PREFIX_PATH ${WINDOWS_DEPENDENCY_VCPKG_DIR})
endif()
+ if(MINGW)
+ list(APPEND CMAKE_PREFIX_PATH $ENV{MSYSTEM_PREFIX})
+ endif()
endif()
find_package(ANN)
find_library(Cairo_LIBRARY NAMES cairo)
- find_program(Cairo_RUNTIME_LIBRARY NAMES cairo.dll)
- find_program(EXPAT_RUNTIME_LIBRARY NAMES expat.dll)
- find_program(FONTCONFIG_RUNTIME_LIBRARY NAMES fontconfig.dll)
- find_program(PIXMAN_RUNTIME_LIBRARY NAMES pixman-1.dll)
+ find_program(Cairo_RUNTIME_LIBRARY NAMES cairo.dll libcairo-2.dll)
+ find_program(EXPAT_RUNTIME_LIBRARY NAMES expat.dll libexpat-1.dll)
+ find_program(FONTCONFIG_RUNTIME_LIBRARY NAMES fontconfig.dll libfontconfig-1.dll)
+ find_program(PIXMAN_RUNTIME_LIBRARY NAMES pixman-1.dll libpixman-1-0.dll)
find_package_handle_standard_args(Cairo DEFAULT_MSG
Cairo_INCLUDE_DIR