- fix for memory leak in findFreeNavPolyIndex()
[blender.git] / build_files / cmake / cmake_static_check_cppcheck.py
index 9b03bbf3982eb261ca6ef15a0ff9a0d90dea5350..6a69891c0aa4d6113234fc715d1b7087756110b4 100644 (file)
 
 # <pep8 compliant>
 
+import project_source_info
+import subprocess
+import sys
+import os
+
 CHECKER_IGNORE_PREFIX = [
     "extern",
     "intern/moto",
@@ -31,15 +36,13 @@ CHECKER_IGNORE_PREFIX = [
 CHECKER_BIN = "cppcheck"
 
 CHECKER_ARGS = [
-    "-I/dsk/data/src/blender/blender/extern/glew/include",
+    # not sure why this is needed, but it is.
+    "-I" + os.path.join(project_source_info.SOURCE_DIR, "extern/glew/include"),
+
     #  "--check-config", # when includes are missing
     #  "--enable=all",  # if you want sixty hundred pedantic suggestions
     ]
 
-import project_source_info
-import subprocess
-import sys
-
 def main():
     source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)