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
This commit is contained in:
Naios
2016-04-25 19:04:25 +02:00
parent 913d112449
commit d44eb86108

View File

@@ -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})