Quellcode durchsuchen

[tools][cmake]:Fix the cmake creation error of scons

CYFS vor 6 Tagen
Ursprung
Commit
96bce36533
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      tools/targets/cmake.py

+ 2 - 1
tools/targets/cmake.py

@@ -62,7 +62,8 @@ def GenerateCFiles(env, project, project_name):
     OBJCOPY = tool_path_conv["CMAKE_OBJCOPY"]["path"]
     FROMELF = tool_path_conv["CMAKE_FROMELF"]["path"]
 
-    CFLAGS = env['CFLAGS'].replace('\\', "/").replace('\"', "\\\"")
+    CFLAGS = "".join(env['CFLAGS'])
+    CFLAGS = CFLAGS.replace('\\', "/").replace('\"', "\\\"")   
     if 'CXXFLAGS' in dir(rtconfig):
         cflag_str=''.join(env['CXXFLAGS'])
         CXXFLAGS = cflag_str.replace('\\', "/").replace('\"', "\\\"")