From a484541d4b6203d538f1a65db5a95e98f5bde920 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 30 Apr 2021 19:47:47 +0200 Subject: CMake: improve detection and configuration of image libs Also: fix old (pre 3.13) link_directories() usage --- CMake/fl_create_example.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMake/fl_create_example.cmake') diff --git a/CMake/fl_create_example.cmake b/CMake/fl_create_example.cmake index a245bb5ea..8071b5070 100644 --- a/CMake/fl_create_example.cmake +++ b/CMake/fl_create_example.cmake @@ -117,9 +117,9 @@ macro (CREATE_EXAMPLE NAME SOURCES LIBRARIES) if (FLTK_HAVE_CAIRO) if (CMAKE_VERSION VERSION_LESS "3.13") - link_directories (${TARGET_NAME} PUBLIC ${PKG_CAIRO_LIBRARY_DIRS}) + link_directories (${PKG_CAIRO_LIBRARY_DIRS}) else() - target_link_directories (${TARGET_NAME} PUBLIC ${PKG_CAIRO_LIBRARY_DIRS}) + target_link_directories (${TARGET_NAME} PRIVATE ${PKG_CAIRO_LIBRARY_DIRS}) endif() endif (FLTK_HAVE_CAIRO) -- cgit v1.2.3