diff options
author | Ignacio Galarza <iggy@mysql.com> | 2009-07-31 15:22:02 -0400 |
---|---|---|
committer | Ignacio Galarza <iggy@mysql.com> | 2009-07-31 15:22:02 -0400 |
commit | 09877515f22be7b4cbd0a96be4814f6024ad6ce3 (patch) | |
tree | 1ec946eb73a7116ce88cd568b44517de785490e0 /include | |
parent | 7fc27f3dd5e4c1b30dcf6d725b8f2b037cfbbb2b (diff) | |
download | mariadb-git-09877515f22be7b4cbd0a96be4814f6024ad6ce3.tar.gz |
Bug#17270 - mysql client tool could not find ../share/charsets folder and fails.
- Define and pass compile time path variables as pre-processor definitions to
mimic the makefile build.
- Set new CMake version and policy requirements explicitly.
- Changed DATADIR to MYSQL_DATADIR to avoid conflicting definition in
Platform SDK header ObjIdl.h which also defines DATADIR.
Diffstat (limited to 'include')
-rw-r--r-- | include/config-netware.h | 2 | ||||
-rw-r--r-- | include/config-win.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/config-netware.h b/include/config-netware.h index 85a5ef86829..b0cf7986451 100644 --- a/include/config-netware.h +++ b/include/config-netware.h @@ -110,7 +110,7 @@ extern "C" { #define DEFAULT_BASEDIR "sys:/" #define SHAREDIR "share/" #define DEFAULT_CHARSET_HOME "sys:/mysql/" -#define DATADIR "data/" +#define MYSQL_DATADIR "data/" /* 64-bit file system calls */ #define SIZEOF_OFF_T 8 diff --git a/include/config-win.h b/include/config-win.h index 05bdfd2c226..84705809d7a 100644 --- a/include/config-win.h +++ b/include/config-win.h @@ -303,13 +303,15 @@ inline ulonglong double2ulonglong(double d) #ifdef _CUSTOMCONFIG_ #include <custom_conf.h> #else +#ifndef CMAKE_CONFIGD #define DEFAULT_MYSQL_HOME "c:\\mysql" -#define DATADIR "c:\\mysql\\data" +#define MYSQL_DATADIR "c:\\mysql\\data" #define PACKAGE "mysql" #define DEFAULT_BASEDIR "C:\\" #define SHAREDIR "share" #define DEFAULT_CHARSET_HOME "C:/mysql/" #endif +#endif #ifndef DEFAULT_HOME_ENV #define DEFAULT_HOME_ENV MYSQL_HOME #endif |