Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,请问通配符匹配目录下所有.c文件,但是排除其中几个.c文件该怎么写? #20

Open
fengyikil opened this issue Sep 26, 2024 · 2 comments

Comments

@fengyikil
Copy link

//! src:../test/*!(ko1|ko2).c 这样写貌似无效。

@skywind3000
Copy link
Owner

不是这样的,通配符使用的路径通配符,不是正则,python glob 的通配符

//! src: ../test/abc*.c
//! src: ../test/def*.c

@fengyikil
Copy link
Author

那么能支持排除其中几个文件吗?类似cmake 的
file(GLOB SOURCES ../test/*.c)
list(REMOVE_ITEM SOURCES ../test/abc.c)
list(REMOVE_ITEM SOURCES ../test/def.c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants