mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-15 04:28:20 +00:00
Merge pull request #9232 from BlaiZephyr/supersede_mysql
Remove ENV-vars from FindMySQL.cmake
This commit is contained in:
commit
1ff5d5b10f
|
@ -36,21 +36,12 @@ if(NOT CMAKE_CROSSCOMPILING)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED ENV{MYSQL_LIBRARY_PATH})
|
set_extra_dirs_lib(MYSQL mysql)
|
||||||
list(APPEND MYSQL_CONFIG_LIBRARY_PATH $ENV{MYSQL_LIBRARY_PATH})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED ENV{MYSQL_INCLUDE_PATH})
|
|
||||||
set(MYSQL_CONFIG_INCLUDE_DIR $ENV{MYSQL_INCLUDE_PATH})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_library(MYSQL_LIBRARY
|
find_library(MYSQL_LIBRARY
|
||||||
NAMES "mysqlclient" "mysqlclient_r" "mariadbclient"
|
NAMES "mysqlclient" "mysqlclient_r" "mariadbclient"
|
||||||
|
#explicitly tell CMake to search through the nix/store when using nix/NixOS
|
||||||
HINTS
|
HINTS
|
||||||
${MYSQL_CONFIG_LIBRARY_PATH}
|
|
||||||
$ENV{MYSQL_LIBRARY_PATH}
|
|
||||||
${CMAKE_CURRENT_LIST_DIR}/../mysql
|
|
||||||
/run/current-system/sw/lib
|
|
||||||
${NIX_STORE_DIR}
|
${NIX_STORE_DIR}
|
||||||
PATHS
|
PATHS
|
||||||
/nix/store
|
/nix/store
|
||||||
|
@ -59,14 +50,9 @@ find_library(MYSQL_LIBRARY
|
||||||
mariadb
|
mariadb
|
||||||
${CROSSCOMPILING_NO_CMAKE_SYSTEM_PATH}
|
${CROSSCOMPILING_NO_CMAKE_SYSTEM_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
find_path(MYSQL_INCLUDEDIR
|
find_path(MYSQL_INCLUDEDIR
|
||||||
NAMES "mysql.h"
|
NAMES "mysql.h"
|
||||||
HINTS
|
HINTS
|
||||||
${MYSQL_CONFIG_INCLUDE_DIR}
|
|
||||||
$ENV{MYSQL_INCLUDE_PATH}
|
|
||||||
${CMAKE_CURRENT_LIST_DIR}/../mysql
|
|
||||||
/run/current-system/sw/include
|
|
||||||
${NIX_STORE_DIR}
|
${NIX_STORE_DIR}
|
||||||
PATHS
|
PATHS
|
||||||
/nix/store
|
/nix/store
|
||||||
|
|
Loading…
Reference in a new issue