|
|
commit d80a1cd653d1d810428785aed43dfbe2e07e7488
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Fri Apr 30 19:47:47 2021 +0200
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Fri Apr 30 19:57:27 2021 +0200
CMake: fix old (pre 3.13) link_directories() usage
CMake/fl_create_example.cmake | 4 ++--
fluid/CMakeLists.txt | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git CMake/fl_create_example.cmake CMake/fl_create_example.cmake
index 72819eb..3f13985 100644
--- CMake/fl_create_example.cmake
+++ 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)
diff --git fluid/CMakeLists.txt fluid/CMakeLists.txt
index 1ca8dd8..de6788e 100644
--- fluid/CMakeLists.txt
+++ fluid/CMakeLists.txt
@@ -69,9 +69,9 @@ endif (APPLE AND (NOT OPTION_APPLE_X11))
target_link_libraries (fluid fltk fltk_images fltk_forms)
if (FLTK_HAVE_CAIRO)
if (CMAKE_VERSION VERSION_LESS "3.13")
- link_directories (fluid PUBLIC ${PKG_CAIRO_LIBRARY_DIRS})
+ link_directories (${PKG_CAIRO_LIBRARY_DIRS})
else()
- target_link_directories (fluid PUBLIC ${PKG_CAIRO_LIBRARY_DIRS})
+ target_link_directories (fluid PRIVATE ${PKG_CAIRO_LIBRARY_DIRS})
endif()
endif (FLTK_HAVE_CAIRO)
[ Direct Link to Message ] | |
|
| |