diff options
author | Naios <naios-dev@live.de> | 2016-04-25 19:04:25 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2016-04-25 19:04:25 +0200 |
commit | d44eb861087b7b144961fd3930028d040bddd7ae (patch) | |
tree | 9d9e42f1a6dca61ccce272b9a3b8fad1feeec9d5 | |
parent | 913d1124491bf0561f8e9938070f22911c1ca42b (diff) |
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
-rw-r--r-- | dep/protobuf/CMakeLists.txt | 4 |
1 files 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}) |