diff options
author | Vladislav Vaintroub <vvaintroub@u8> | 2009-11-14 14:29:14 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@u8> | 2009-11-14 14:29:14 +0100 |
commit | 9edb94c69e4f77d29dddc9fde49c4b5edf7e129f (patch) | |
tree | bfecf53cb99d84a518982b06435e0af15a36c732 /scripts/CMakeLists.txt | |
parent | 1b2fe5f257d8505463a8631fb1e76962f30a89b1 (diff) | |
download | mariadb-git-9edb94c69e4f77d29dddc9fde49c4b5edf7e129f.tar.gz |
fix make install/ mysqld_safe
Diffstat (limited to 'scripts/CMakeLists.txt')
-rwxr-xr-x | scripts/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index de3e4c661f6..0403a1bb5ae 100755 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -55,7 +55,12 @@ ENDIF() 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 IF(NOT CMAKE_CROSSCOMPILING) ADD_EXECUTABLE(comp_sql comp_sql.c) @@ -107,7 +112,7 @@ SET(LDFLAGS "${CMAKE_SHARED_LIBRARY_LINK_FLAGS}") IF(WIN32) SET(prefix "${CMAKE_INSTALL_PREFIX}/MySQL Server ${MYSQL_BASE_VERSION}") ELSE() - set(prefix "${CMAKE_INSTALL_PREFIX}/mysql") + set(prefix "${CMAKE_INSTALL_PREFIX}") ENDIF() SET(sysconfdir ${prefix}) |