aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-22 06:09:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-22 06:09:37 +0000
commit05dafd82077e439ffe1490410c380e6c14f60646 (patch)
tree54246cd85906aa3b766a57e534c23bf4996af0fd /CMakeLists.txt
parentbf6f0859b080e2a03e70a79e9cb1c99d3b764610 (diff)
CMake: Fix definition of LTDL_SHLIB_EXT for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e48ef6b59..684d3d0da2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -145,7 +145,11 @@ else(WIN32)
if(UNIX)
set(LLVM_ON_WIN32 0)
set(LLVM_ON_UNIX 1)
- set(LTDL_SHLIB_EXT ".so")
+ if(APPLE)
+ set(LTDL_SHLIB_EXT ".dylib")
+ else(APPLE)
+ set(LTDL_SHLIB_EXT ".so")
+ endif(APPLE)
set(EXEEXT "")
# FIXME: Maximum path length is currently set to 'safe' fixed value
set(MAXPATHLEN 2024)