Skip to content

Commit

Permalink
Mac Package name wrong + rpath issue.
Browse files Browse the repository at this point in the history
Package name had a "_" which should be a "-"
rpath's need to be fixed for third party dylibs linking to other
thirdparty dylibs

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Jun 29, 2012
1 parent ccaede9 commit 9766c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ else()
endif()

if (APPLE)
set ( CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_RPM_PACKAGE_VERSION}_${version}-${stagever}-${CPACK_SYSTEM_NAME}")
set ( CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_RPM_PACKAGE_VERSION}-${version}-${stagever}-${CPACK_SYSTEM_NAME}")
set ( CPACK_MONOLITHIC_INSTALL TRUE )
set ( CPACK_PACKAGE_VENDOR "HPCC Systems" )
file(WRITE "${PROJECT_BINARY_DIR}/welcome.txt"
Expand Down
3 changes: 2 additions & 1 deletion lib2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if (APPLE)
set(DYLIBS ${DYLIBS} ${BOOST_REGEX_LIBRARIES})
set(DYLIBS ${DYLIBS} ${XALAN_LIBRARIES})
set(DYLIBS ${DYLIBS} ${XERCES_LIBRARIES})
set(DYLIBS ${DYLIBS} ${BINUTILS_LIBRARIES})

foreach(dylib ${DYLIBS})
get_filename_component(dylib_path ${dylib} REALPATH)
Expand All @@ -43,7 +44,7 @@ if (APPLE)

install(PROGRAMS "${dylib_path}" DESTINATION "${OSSDIR}/lib2")
install(CODE "
file(GLOB files \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OSSDIR}/bin/*\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OSSDIR}/lib/*.dylib\")
file(GLOB files \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OSSDIR}/bin/*\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OSSDIR}/lib/*.dylib\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OSSDIR}/lib2/*.dylib\")
foreach(file \${files})
${fixupCommand}
endforeach ()
Expand Down

0 comments on commit 9766c75

Please sign in to comment.