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:
authorMatteo F. Vescovi <mfvescovi@gmail.com>2014-05-26 11:37:54 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-06-02 14:26:38 +0400
commit9b23d9acec9aa88f1d810a40816b83b8d94df44b (patch)
tree12ddd0497a659f91b42e8b951b70735adb954ce5 /CMakeLists.txt
parent3e6c734eaa3ed3a12dccc84a3c39ecda050ccb37 (diff)
Fix compilation error non non-linux architectures
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2962b58824d..738518235d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -915,6 +915,9 @@ if(UNIX AND NOT APPLE)
endif()
set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -pthread")
+ if(CMAKE_DL_LIBS)
+ list(APPEND PLATFORM_LINKLIBS ${CMAKE_DL_LIBS})
+ endif()
# lfs on glibc, all compilers should use
add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE)