Skip to content

Commit

Permalink
cswrap-util: recognise temp files used by CMake's try_compile() macro
Browse files Browse the repository at this point in the history
This commit fixes a build failure of rdma-core-35.0-1.el8 with the gcc
plug-in of csmock enabled.
  • Loading branch information
kdudka committed May 17, 2021
1 parent 1c14af5 commit bff3166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cswrap-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ bool is_ignored_file(const char *name)
return true;

/* used by cmake */
if (strstr(name, "/CMakeTmp/"))
if (strstr(name, "/CMakeTmp/") || strstr(name, "CMakeFiles/cmTC_"))
return true;

/* used by meson */
Expand Down

0 comments on commit bff3166

Please sign in to comment.