Build/CMake: Fix finding MySQL install

(cherry picked from commit d4deb17a2f94d06b7eab232b90e874fa58675b36)
This commit is contained in:
DDuarte committed 2015-06-29 14:09:48 +01:00
1 parent 1a34fde96b
commit 1b2a67a1b5
1 file changed
+13
+13
View File
@@ -63,6 +63,19 @@ if( UNIX )
endif( MYSQL_CONFIG )
endif( UNIX )
if( WIN32 )
# read environment variables and change \ to /
SET(PROGRAM_FILES_32 $ENV{ProgramFiles})
if (${PROGRAM_FILES_32})
STRING(REPLACE "\\\\" "/" PROGRAM_FILES_32 ${PROGRAM_FILES_32})
endif(${PROGRAM_FILES_32})
SET(PROGRAM_FILES_64 $ENV{ProgramW6432})
if (${PROGRAM_FILES_64})
STRING(REPLACE "\\\\" "/" PROGRAM_FILES_64 ${PROGRAM_FILES_64})
endif(${PROGRAM_FILES_64})
endif ( WIN32 )
find_path(MYSQL_INCLUDE_DIR
NAMES
mysql.h