Commit 43ae7013 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

cmake: Modern way to link to freetype

parent 3cc7bdd1
......@@ -9,7 +9,6 @@ include_directories(
if (FREETYPE_FOUND)
add_definitions(-DHAVE_FREETYPE)
include_directories(${FREETYPE_INCLUDE_DIRS})
else (FREETYPE_FOUND)
remove_definitions(-DHAVE_FREETYPE)
endif (FREETYPE_FOUND)
......@@ -52,7 +51,7 @@ okular_add_generator(okularGenerator_dvi ${okularGenerator_dvi_SRCS})
target_link_libraries(okularGenerator_dvi okularcore KF5::I18n)
if (FREETYPE_FOUND)
target_link_libraries(okularGenerator_dvi ${FREETYPE_LIBRARIES})
target_link_libraries(okularGenerator_dvi Freetype::Freetype)
endif (FREETYPE_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment