在我的 CMakeLists.txt 我在寻找隐藏的文件,比如 .git
CMakeLists.txt
.git
if(${item} MATCHES "\.*")
不适合我。有什么提示吗?
This answer 为我工作:
if(${item} MATCHES "^\\..*")