mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Only link to mariadb if both mariadb and mysql is present. Also print the fact.
This commit is contained in:
parent
a54178e1ee
commit
baf6d529dc
@ -22,9 +22,17 @@ def can_build():
|
|||||||
mysql_error = os.system("pkg-config mysql --modversion --silence-errors > /dev/null ")
|
mysql_error = os.system("pkg-config mysql --modversion --silence-errors > /dev/null ")
|
||||||
|
|
||||||
if mariadb_error and mysql_error:
|
if mariadb_error and mysql_error:
|
||||||
#print("mysql and mariadb not found..")
|
print("mysql and mariadb not found..")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not mariadb_error:
|
||||||
|
print("mariadb found!")
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
if not mysql_error:
|
||||||
|
print("mysql found!")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
#todo
|
#todo
|
||||||
@ -50,6 +58,7 @@ def configure(env):
|
|||||||
|
|
||||||
if not mariadb_error:
|
if not mariadb_error:
|
||||||
env.ParseConfig("pkg-config mariadb --cflags --libs")
|
env.ParseConfig("pkg-config mariadb --cflags --libs")
|
||||||
|
return
|
||||||
|
|
||||||
if not mysql_error:
|
if not mysql_error:
|
||||||
env.ParseConfig("pkg-config mysql --cflags --libs")
|
env.ParseConfig("pkg-config mysql --cflags --libs")
|
||||||
|
Loading…
Reference in New Issue
Block a user