diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 38cfa8e..79ac2a2 100755 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -141,10 +141,17 @@ if (ARTIST_SKIA) elseif (UNIX) - set(ARTIST_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/linux/x86_64/src/prebuilt_binaries) - set(ARTIST_BINARIES_URL https://github.com/cycfi/artist/raw/prebuilt_binaries_0.90/linux/skia/x86_64/libskia.a.zip) - set(ARTIST_BINARIES_MD5 18def70ddce24ea79a7a308163dfbda3) - set(ARTIST_BINARIES_PREFIX linux/x86_64) + if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + set(ARTIST_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/linux/gcc/x86_64/src/prebuilt_binaries) + set(ARTIST_BINARIES_URL https://github.com/cycfi/artist/raw/prebuilt_binaries_0.90/linux/skia/gcc/x86_64/libskia.a.zip) + set(ARTIST_BINARIES_MD5 18def70ddce24ea79a7a308163dfbda3) + set(ARTIST_BINARIES_PREFIX linux/gcc/x86_64) + elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang") + set(ARTIST_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/linux/clang/x86_64/src/prebuilt_binaries) + set(ARTIST_BINARIES_URL https://github.com/cycfi/artist/raw/prebuilt_binaries_0.90/linux/skia/clang/x86_64/libskia.a.zip) + set(ARTIST_BINARIES_MD5 db92deccb22589f2551955003ef37ce6) + set(ARTIST_BINARIES_PREFIX linux/clang/x86_64) + endif() find_package(Threads) find_package(PkgConfig REQUIRED)