diff options
author | crupest <crupest@outlook.com> | 2022-06-08 19:03:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-06-08 19:03:36 +0800 |
commit | a61a9c8cad237c9e46ad80dae54bd210bb2692b8 (patch) | |
tree | 0bcc34b968b1570259450ce5cca12d20d6e3365d | |
parent | 2b522edb744c7a39c86356944f58b1e02aa8a7e3 (diff) | |
download | cru-a61a9c8cad237c9e46ad80dae54bd210bb2692b8.tar.gz cru-a61a9c8cad237c9e46ad80dae54bd210bb2692b8.tar.bz2 cru-a61a9c8cad237c9e46ad80dae54bd210bb2692b8.zip |
...
-rw-r--r-- | src/platform/graphics/cairo/CMakeLists.txt | 6 |
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) |