Browse Source

Use C++17 flag only for C++ files.

bruvzg 3 years ago
parent
commit
3bb86f1e01
1 changed files with 2 additions and 2 deletions
  1. 2 2
      SConstruct

+ 2 - 2
SConstruct

@@ -170,9 +170,9 @@ if host_platform == "windows" and env["platform"] != "android":
 # Require C++17
 # Require C++17
 if host_platform == "windows" and env["platform"] == "windows" and not env["use_mingw"]:
 if host_platform == "windows" and env["platform"] == "windows" and not env["use_mingw"]:
     # MSVC
     # MSVC
-    env.Append(CCFLAGS=["/std:c++17"])
+    env.Append(CXXFLAGS=["/std:c++17"])
 else:
 else:
-    env.Append(CCFLAGS=["-std=c++17"])
+    env.Append(CXXFLAGS=["-std=c++17"])
 
 
 if env["target"] == "debug":
 if env["target"] == "debug":
     env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_METHODS_ENABLED"])
     env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_METHODS_ENABLED"])