aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/graphics')
-rw-r--r--src/platform/graphics/cairo/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/graphics/cairo/CMakeLists.txt b/src/platform/graphics/cairo/CMakeLists.txt
index 0211bcc7..2cd75329 100644
--- a/src/platform/graphics/cairo/CMakeLists.txt
+++ b/src/platform/graphics/cairo/CMakeLists.txt
@@ -1,6 +1,8 @@
if (UNIX)
- set(LIB_ARCH_DIR ${CMAKE_SYSTEM_PREFIX_PATH})
- list(TRANSFORM LIB_ARCH_DIR APPEND "/lib/${CMAKE_LIBRARY_ARCHITECTURE}")
+ foreach(PP IN LISTS CMAKE_SYSTEM_PREFIX_PATH)
+ cmake_path(APPEND PP "lib" ${CMAKE_LIBRARY_ARCHITECTURE})
+ list(APPEND LIB_ARCH_DIR ${PP})
+ endforeach()
find_library(LIB_CAIRO cairo REQUIRED)
find_library(LIB_GOBJECT NAMES gobject gobject-2.0 REQUIRED)