From d44eb861087b7b144961fd3930028d040bddd7ae Mon Sep 17 00:00:00 2001 From: Naios Date: Mon, 25 Apr 2016 19:04:25 +0200 Subject: Dep/Protobuf: Quote a string in the CMakeLists * Prevents errors when the c or cxx flags are empty for some reason (which should never happen in proper configured environments). * Closes #17031 --- dep/protobuf/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dep/protobuf/CMakeLists.txt b/dep/protobuf/CMakeLists.txt index a530cedc970..1f65931d27b 100644 --- a/dep/protobuf/CMakeLists.txt +++ b/dep/protobuf/CMakeLists.txt @@ -60,8 +60,8 @@ endif() if (UNIX) # Enable the default unix export behaviour for protobuf so we don't # need to patch it's sources. - string(REPLACE "-fvisibility=hidden" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS}) - string(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + string(REPLACE "-fvisibility=hidden" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + string(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endif() add_library(protobuf ${protobuf_STAT_SRCS}) -- cgit v1.2.3