Enable subversion lib packaging on Mac
This commit is contained in:
parent
b7b4553db6
commit
9c2d01189e
2 changed files with 12 additions and 9 deletions
|
@ -16,14 +16,18 @@ macro(find_static_component comp libs)
|
||||||
string(TOUPPER "${comp}" compLibBase)
|
string(TOUPPER "${comp}" compLibBase)
|
||||||
set( compLibName ${compLibBase}_LIBRARY )
|
set( compLibName ${compLibBase}_LIBRARY )
|
||||||
|
|
||||||
|
# NO_DEFAULT_PATH is important on Mac - we need to ensure subversion
|
||||||
|
# libraires in dist/ or Macports are picked over the Apple version
|
||||||
|
# in /usr, since that's what we will ship.
|
||||||
FIND_LIBRARY(${compLibName}
|
FIND_LIBRARY(${compLibName}
|
||||||
|
NO_DEFAULT_PATH
|
||||||
NAMES ${compLib}
|
NAMES ${compLib}
|
||||||
HINTS $ENV{PLIBDIR}
|
HINTS $ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
|
||||||
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
|
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
|
||||||
PATHS
|
PATHS
|
||||||
|
/opt/local
|
||||||
/usr/local
|
/usr/local
|
||||||
/usr
|
/usr
|
||||||
/opt
|
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND ${libs} ${${compLibName}})
|
list(APPEND ${libs} ${${compLibName}})
|
||||||
|
@ -49,13 +53,14 @@ endif(HAVE_APR_CONFIG)
|
||||||
|
|
||||||
if(HAVE_APR_CONFIG OR MSVC)
|
if(HAVE_APR_CONFIG OR MSVC)
|
||||||
find_path(LIBSVN_INCLUDE_DIR svn_client.h
|
find_path(LIBSVN_INCLUDE_DIR svn_client.h
|
||||||
|
NO_DEFAULT_PATH
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{LIBSVN_DIR}
|
$ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
|
||||||
PATH_SUFFIXES include/subversion-1
|
PATH_SUFFIXES include/subversion-1
|
||||||
PATHS
|
PATHS
|
||||||
|
/opt/local
|
||||||
/usr/local
|
/usr/local
|
||||||
/usr
|
/usr
|
||||||
/opt
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LIBSVN_LIBRARIES "")
|
set(LIBSVN_LIBRARIES "")
|
||||||
|
@ -73,5 +78,4 @@ if(HAVE_APR_CONFIG OR MSVC)
|
||||||
if(NOT LIBSVN_FOUND)
|
if(NOT LIBSVN_FOUND)
|
||||||
set(LIBSVN_LIBRARIES "")
|
set(LIBSVN_LIBRARIES "")
|
||||||
endif(NOT LIBSVN_FOUND)
|
endif(NOT LIBSVN_FOUND)
|
||||||
|
|
||||||
endif(HAVE_APR_CONFIG OR MSVC)
|
endif(HAVE_APR_CONFIG OR MSVC)
|
||||||
|
|
|
@ -122,8 +122,7 @@ $osgPlugins.each do |p|
|
||||||
fix_install_names("#{osgPluginsDir}/#{pluginFile}")
|
fix_install_names("#{osgPluginsDir}/#{pluginFile}")
|
||||||
end
|
end
|
||||||
|
|
||||||
# svn lib copying disabled for the moment
|
copy_svn_libs()
|
||||||
# copy_svn_libs()
|
|
||||||
|
|
||||||
# custom ALUT
|
# custom ALUT
|
||||||
# must copy frameworks using ditto
|
# must copy frameworks using ditto
|
||||||
|
|
Loading…
Reference in a new issue