##########################################################################
+FILE(GLOB _macports_include_dirs /opt/local/include/mysql*/mysql)
+
#-------------- FIND MYSQL_INCLUDE_DIR ------------------
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
$ENV{MYSQL_INCLUDE_DIR}
/opt/local/include/mysql5
/usr/local/mysql/include
/usr/local/mysql/include/mysql
+ ${_macports_include_dirs}
$ENV{ProgramFiles}/MySQL/*/include
$ENV{SystemDrive}/MySQL/*/include)
+UNSET(_macports_include_dirs)
+
#----------------- FIND MYSQL_LIB_DIR -------------------
IF (WIN32)
SET(MYSQL_CLIENT_LIBS libmysql)
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
ELSE (WIN32)
SET(MYSQL_CLIENT_LIBS mysqlclient)
+
+ FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)
+
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
PATHS
$ENV{MYSQL_DIR}/libmysql_r/.libs
/opt/local/mysql5/lib
/opt/local/lib/mysql5/mysql
/opt/mysql/mysql/lib/mysql
- /opt/mysql/lib/mysql)
+ /opt/mysql/lib/mysql
+ ${_macports_lib_dirs})
+
+ UNSET(_macports_lib_dirs)
ENDIF (WIN32)
IF(MYSQL_LIB)
foreach (suffix ${PostgreSQL_KNOWN_VERSIONS} )
set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "C:/Program Files/PostgreSQL/${suffix}" )
endforeach()
+else()
+ set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "/Library/PostgreSQL/*")
endif()
set( PostgreSQL_ROOT_DIRECTORIES
ENV PostgreSQL_ROOT