Commit 20b785c0 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix make install/ mysqld_safe

parent d71dfe21
...@@ -134,7 +134,7 @@ IF(WIN32) ...@@ -134,7 +134,7 @@ IF(WIN32)
SET(DEFAULT_MYSQL_HOME "C:/Program Files/MySQL/MySQL Server ${MYSQL_BASE_VERSION}/" ) SET(DEFAULT_MYSQL_HOME "C:/Program Files/MySQL/MySQL Server ${MYSQL_BASE_VERSION}/" )
SET(SHAREDIR share) SET(SHAREDIR share)
ELSE() ELSE()
SET(DEFAULT_MYSQL_HOME ${CMAKE_INSTALL_PREFIX}/mysql/) SET(DEFAULT_MYSQL_HOME ${CMAKE_INSTALL_PREFIX})
SET(SHAREDIR ${DEFAULT_MYSQL_HOME}share) SET(SHAREDIR ${DEFAULT_MYSQL_HOME}share)
ENDIF() ENDIF()
......
...@@ -55,7 +55,12 @@ ENDIF() ...@@ -55,7 +55,12 @@ ENDIF()
ENDIF(UNIX) ENDIF(UNIX)
# some scripts use @TARGET_LINUX@
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(TARGET_LINUX 1)
ELSE()
SET(TARGET_LINUX 0)
ENDIF()
# Build comp_sql - used for embedding SQL in C or C++ programs # Build comp_sql - used for embedding SQL in C or C++ programs
IF(NOT CMAKE_CROSSCOMPILING) IF(NOT CMAKE_CROSSCOMPILING)
ADD_EXECUTABLE(comp_sql comp_sql.c) ADD_EXECUTABLE(comp_sql comp_sql.c)
...@@ -107,7 +112,7 @@ SET(LDFLAGS "${CMAKE_SHARED_LIBRARY_LINK_FLAGS}") ...@@ -107,7 +112,7 @@ SET(LDFLAGS "${CMAKE_SHARED_LIBRARY_LINK_FLAGS}")
IF(WIN32) IF(WIN32)
SET(prefix "${CMAKE_INSTALL_PREFIX}/MySQL Server ${MYSQL_BASE_VERSION}") SET(prefix "${CMAKE_INSTALL_PREFIX}/MySQL Server ${MYSQL_BASE_VERSION}")
ELSE() ELSE()
set(prefix "${CMAKE_INSTALL_PREFIX}/mysql") set(prefix "${CMAKE_INSTALL_PREFIX}")
ENDIF() ENDIF()
SET(sysconfdir ${prefix}) SET(sysconfdir ${prefix})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment