mirror of https://github.com/Icinga/icinga2.git
Add more include/library paths for MySQL and PostgreSQL
This commit is contained in:
parent
025abc3357
commit
6afc4ec7ac
|
@ -28,6 +28,8 @@
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
||||||
|
FILE(GLOB _macports_include_dirs /opt/local/include/mysql*/mysql)
|
||||||
|
|
||||||
#-------------- FIND MYSQL_INCLUDE_DIR ------------------
|
#-------------- FIND MYSQL_INCLUDE_DIR ------------------
|
||||||
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
|
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
|
||||||
$ENV{MYSQL_INCLUDE_DIR}
|
$ENV{MYSQL_INCLUDE_DIR}
|
||||||
|
@ -40,9 +42,12 @@ FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
|
||||||
/opt/local/include/mysql5
|
/opt/local/include/mysql5
|
||||||
/usr/local/mysql/include
|
/usr/local/mysql/include
|
||||||
/usr/local/mysql/include/mysql
|
/usr/local/mysql/include/mysql
|
||||||
|
${_macports_include_dirs}
|
||||||
$ENV{ProgramFiles}/MySQL/*/include
|
$ENV{ProgramFiles}/MySQL/*/include
|
||||||
$ENV{SystemDrive}/MySQL/*/include)
|
$ENV{SystemDrive}/MySQL/*/include)
|
||||||
|
|
||||||
|
UNSET(_macports_include_dirs)
|
||||||
|
|
||||||
#----------------- FIND MYSQL_LIB_DIR -------------------
|
#----------------- FIND MYSQL_LIB_DIR -------------------
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
SET(MYSQL_CLIENT_LIBS libmysql)
|
SET(MYSQL_CLIENT_LIBS libmysql)
|
||||||
|
@ -70,6 +75,9 @@ IF (WIN32)
|
||||||
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
|
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
SET(MYSQL_CLIENT_LIBS mysqlclient)
|
SET(MYSQL_CLIENT_LIBS mysqlclient)
|
||||||
|
|
||||||
|
FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)
|
||||||
|
|
||||||
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
|
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
|
||||||
PATHS
|
PATHS
|
||||||
$ENV{MYSQL_DIR}/libmysql_r/.libs
|
$ENV{MYSQL_DIR}/libmysql_r/.libs
|
||||||
|
@ -82,7 +90,10 @@ ELSE (WIN32)
|
||||||
/opt/local/mysql5/lib
|
/opt/local/mysql5/lib
|
||||||
/opt/local/lib/mysql5/mysql
|
/opt/local/lib/mysql5/mysql
|
||||||
/opt/mysql/mysql/lib/mysql
|
/opt/mysql/mysql/lib/mysql
|
||||||
/opt/mysql/lib/mysql)
|
/opt/mysql/lib/mysql
|
||||||
|
${_macports_lib_dirs})
|
||||||
|
|
||||||
|
UNSET(_macports_lib_dirs)
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
|
|
||||||
IF(MYSQL_LIB)
|
IF(MYSQL_LIB)
|
||||||
|
|
|
@ -112,6 +112,8 @@ if ( WIN32 )
|
||||||
foreach (suffix ${PostgreSQL_KNOWN_VERSIONS} )
|
foreach (suffix ${PostgreSQL_KNOWN_VERSIONS} )
|
||||||
set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "C:/Program Files/PostgreSQL/${suffix}" )
|
set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "C:/Program Files/PostgreSQL/${suffix}" )
|
||||||
endforeach()
|
endforeach()
|
||||||
|
else()
|
||||||
|
set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "/Library/PostgreSQL/*")
|
||||||
endif()
|
endif()
|
||||||
set( PostgreSQL_ROOT_DIRECTORIES
|
set( PostgreSQL_ROOT_DIRECTORIES
|
||||||
ENV PostgreSQL_ROOT
|
ENV PostgreSQL_ROOT
|
||||||
|
|
Loading…
Reference in New Issue