CMake: Cairo is required for CLI, not just tests.
parent
3858cbe249
commit
6989a3d068
|
@ -140,7 +140,6 @@ if(WIN32)
|
|||
find_package(OpenGL REQUIRED)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
message(STATUS "Using in-tree pixman")
|
||||
add_vendored_subdirectory(extlib/pixman)
|
||||
set(PIXMAN_FOUND YES)
|
||||
|
@ -154,7 +153,6 @@ if(WIN32)
|
|||
set(CAIRO_LIBRARIES cairo)
|
||||
set(CAIRO_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/extlib/cairo/src)
|
||||
list(APPEND CAIRO_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/extlib/cairo/src)
|
||||
endif()
|
||||
|
||||
if(NOT MINGW)
|
||||
message(STATUS "Using prebuilt SpaceWare")
|
||||
|
@ -172,10 +170,8 @@ elseif(APPLE)
|
|||
find_package(Freetype REQUIRED)
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
find_library(CAIRO_LIBRARIES cairo REQUIRED)
|
||||
find_path(CAIRO_INCLUDE_DIRS cairo.h PATH_SUFFIXES cairo)
|
||||
endif()
|
||||
|
||||
find_library(APPKIT_LIBRARY AppKit REQUIRED)
|
||||
else() # Linux and compatible systems
|
||||
|
@ -189,13 +185,10 @@ else() # Linux and compatible systems
|
|||
find_package(Freetype REQUIRED)
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
pkg_check_modules(CAIRO REQUIRED cairo)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(FONTCONFIG REQUIRED fontconfig)
|
||||
pkg_check_modules(JSONC REQUIRED json-c)
|
||||
pkg_check_modules(FREETYPE REQUIRED freetype2)
|
||||
|
||||
if(GUI STREQUAL "gtk3")
|
||||
set(HAVE_GTK3 TRUE)
|
||||
|
|
Loading…
Reference in New Issue