diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-04-30 19:47:47 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-04-30 19:47:47 +0200 |
| commit | a484541d4b6203d538f1a65db5a95e98f5bde920 (patch) | |
| tree | e2b33bd7f0da7e60d60cfd7fa5beeb55f40e3f50 /CMake/fl_create_example.cmake | |
| parent | 2555e3b37e6218378e7becbb2b62ab6e7f1c1cd1 (diff) | |
CMake: improve detection and configuration of image libs
Also: fix old (pre 3.13) link_directories() usage
Diffstat (limited to 'CMake/fl_create_example.cmake')
| -rw-r--r-- | CMake/fl_create_example.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
