cmake: double quote variable to avoid missing paramter error if empty
@@ -132,7 +132,7 @@ if (UNIX)
string (STRIP "${OS_PRETTY_NAME}" OS_PRETTY_NAME)
endif (NOT APPLE)
set (OS_DISTRIB "${OS_NAME}${OS_VERSION_ID}")
- string (REPLACE " " "-" OS_DISTRIB ${OS_DISTRIB}) # replace spaces with dashes, since rpm-build can't handle paths with spaces
+ string (REPLACE " " "-" OS_DISTRIB "${OS_DISTRIB}") # replace spaces with dashes, since rpm-build can't handle paths with spaces
if (NOT OS_DISTRIB)
set (OS_DISTRIB "unix")
endif (NOT OS_DISTRIB)
