MDEV-5124 cmake failure when fullhostname is not resolved
expand fullhostname inside the string, to have an empty string, not nothing, when fullhostname is not defined
This commit is contained in:
parent
3d57c343e5
commit
db635ab590
@ -60,7 +60,7 @@ macro(hostname out)
|
||||
COMMAND hostname
|
||||
OUTPUT_VARIABLE fullhostname
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} ${fullhostname})
|
||||
string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} "${fullhostname}")
|
||||
endmacro(hostname)
|
||||
|
||||
## gather machine info
|
||||
|
Loading…
x
Reference in New Issue
Block a user