summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2010-08-10 09:41:27 -0600
committerLloyd Hilaiel <lloyd@hilaiel.com>2010-08-10 10:44:36 -0600
commita31c4d0f9ad90b4b58508702fd877bb35039067e (patch)
treec967ab351a306df11ff33cecebd3c37d6019225b /src
parentf4baae0b07d7abb5c3624d7189bd0377af57efc6 (diff)
downloadyajl-a31c4d0f9ad90b4b58508702fd877bb35039067e.tar.gz
fix paths embedded in dylib upon installation on osx. closes #11
more
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4472157..0cb84ef 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -60,6 +60,13 @@ SET_TARGET_PROPERTIES(yajl PROPERTIES
SOVERSION ${YAJL_MAJOR}
VERSION ${YAJL_MAJOR}.${YAJL_MINOR}.${YAJL_MICRO})
+#### ensure a .dylib has correct absolute installation paths upon installation
+IF(APPLE)
+ MESSAGE("INSTALL_NAME_DIR: ${CMAKE_INSTALL_PREFIX}/lib")
+ SET_TARGET_PROPERTIES(yajl PROPERTIES
+ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+ENDIF(APPLE)
+
#### build up an sdk as a post build step
# create some directories