0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
13 lines
408 B
Diff
13 lines
408 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8bd825f..694d9b2 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -72,6 +72,8 @@ if(WITH_JSON)
|
|
endif()
|
|
|
|
add_definitions("-DJSON")
|
|
+ # JSON_CFLAGS is a list, i.e. semicolon-separated, convert it to space-separated
|
|
+ string(REPLACE ";" " " JSON_CFLAGS "${JSON_CFLAGS}")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${JSON_CFLAGS}")
|
|
endif()
|
|
|