diff --git a/utilities/filterCompileCommands.py b/utilities/filterCompileCommands.py
index 95d7e45fce529fb041d67bf9c4e0d658be8e1483..4158c5db7a17d1284c4db6fcb25a34064e657f59 100644
--- a/utilities/filterCompileCommands.py
+++ b/utilities/filterCompileCommands.py
@@ -5,7 +5,7 @@ import sys
 
 
 def compile_command_selector(x):
-    return not ("3rdParty" in x["file"]) or not (".cu" in x["file"])
+    return not ("3rdParty" in x["file"] or ".cu" in x["file"])
 
 
 if __name__ == "__main__":