Commit fd0c18e2 authored by Dominik Charousset's avatar Dominik Charousset

Fix around parsing weirdness of CMake, close #217

parent 697680b9
......@@ -91,7 +91,16 @@ $benchmark_suite_options"
# $3 is the cache entry variable value
append_cache_entry ()
{
CMakeCacheEntries="$CMakeCacheEntries \"-D $1:$2=$3\""
case "$3" in
*\ * )
# string contains whitespace
CMakeCacheEntries="$CMakeCacheEntries -D \"$1:$2=$3\""
;;
*)
# string contains whitespace
CMakeCacheEntries="$CMakeCacheEntries -D $1:$2=$3"
;;
esac
}
# Creates a build directory via CMake.
......
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