Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-17 13:40:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-17 13:42:13 +0300
commitd33456e5ec70255a21089aa4c3dd7dc48307a344 (patch)
tree6db1228cfd7b0721eea099c509fd67a833e80613 /build_files/cmake
parent894a2162521ceaa3347e311e47091ce2fbbeb83d (diff)
Build Environment: fixes for Linux after recent updates.
Diffstat (limited to 'build_files/cmake')
-rw-r--r--build_files/cmake/platform/platform_unix.cmake11
1 files changed, 7 insertions, 4 deletions
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index 75222b6663f..74958a8731c 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -353,16 +353,19 @@ if(WITH_OPENCOLORIO)
endif()
if(WITH_LLVM)
- # Symbol conflicts with same UTF library used by OpenCollada
if(EXISTS ${LIBDIR})
set(LLVM_STATIC ON)
- if(WITH_OPENCOLLADA)
- list(REMOVE_ITEM OPENCOLLADA_LIBRARIES ${OPENCOLLADA_UTF_LIBRARY})
- endif()
endif()
find_package_wrapper(LLVM)
+ # Symbol conflicts with same UTF library used by OpenCollada
+ if(EXISTS ${LIBDIR})
+ if(WITH_OPENCOLLADA AND (${LLVM_VERSION} VERSION_LESS "4.0.0"))
+ list(REMOVE_ITEM OPENCOLLADA_LIBRARIES ${OPENCOLLADA_UTF_LIBRARY})
+ endif()
+ endif()
+
if(NOT LLVM_FOUND)
set(WITH_LLVM OFF)
message(STATUS "LLVM not found")