string(TOUPPER "${comp}" compLibBase)
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}
+ NO_DEFAULT_PATH
NAMES ${compLib}
- HINTS $ENV{PLIBDIR}
+ HINTS $ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
+ /opt/local
/usr/local
/usr
- /opt
)
list(APPEND ${libs} ${${compLibName}})
if(HAVE_APR_CONFIG OR MSVC)
find_path(LIBSVN_INCLUDE_DIR svn_client.h
+ NO_DEFAULT_PATH
HINTS
- $ENV{LIBSVN_DIR}
+ $ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX}
PATH_SUFFIXES include/subversion-1
PATHS
+ /opt/local
/usr/local
/usr
- /opt
)
set(LIBSVN_LIBRARIES "")
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBSVN DEFAULT_MSG LIBSVN_LIBRARIES LIBSVN_INCLUDE_DIR)
- if(NOT LIBSVN_FOUND)
+ if(NOT LIBSVN_FOUND)
set(LIBSVN_LIBRARIES "")
- endif(NOT LIBSVN_FOUND)
-
+ endif(NOT LIBSVN_FOUND)
endif(HAVE_APR_CONFIG OR MSVC)