Commit 3d6c77bf authored by Tor Didriksen's avatar Tor Didriksen

Bug#16316074 RFE: MAKE TMPDIR A BUILD-TIME CONFIGURABLE OPTION

Bug#68338    RFE: make tmpdir a build-time configurable option

Post-push fix: 'cmake -LH | grep TMP' showed TMPDIR as a BOOL option,
which was a bit confusing: show it as a PATH instead.
parent c7ca708f
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -329,14 +329,17 @@ IF(SYSCONFDIR) ...@@ -329,14 +329,17 @@ IF(SYSCONFDIR)
SET(DEFAULT_SYSCONFDIR "${SYSCONFDIR}") SET(DEFAULT_SYSCONFDIR "${SYSCONFDIR}")
ENDIF() ENDIF()
OPTION(TMPDIR IF(UNIX)
"PATH to MySQL TMP dir. If unspecified, defaults to P_tmpdir in <stdio.h>" OFF) SET(TMPDIR "P_tmpdir"
IF(TMPDIR) CACHE PATH
# Quote it, to make it a const char string. "PATH to MySQL TMP dir. Defaults to the P_tmpdir macro in <stdio.h>")
SET(DEFAULT_TMPDIR "\"${TMPDIR}\"") IF(TMPDIR STREQUAL "P_tmpdir")
ELSE() # Do not quote it, to refer to the P_tmpdir macro.
# Do not quote it, to refer to the P_tmpdir macro in <stdio.h>. SET(DEFAULT_TMPDIR "P_tmpdir")
SET(DEFAULT_TMPDIR "P_tmpdir") ELSE()
# Quote it, to make it a const char string.
SET(DEFAULT_TMPDIR "\"${TMPDIR}\"")
ENDIF()
ENDIF() ENDIF()
# Run platform tests # Run platform tests
......
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