From db635ab590704232308ac1aa5629a1d940de9f16 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 11 Nov 2013 09:30:48 +0100 Subject: [PATCH] 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 --- storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake b/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake index f6aedca0868..5ca2fb64458 100644 --- a/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake +++ b/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake @@ -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