mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user