From d3dd216c208b43a10aa086a5463ff906b430c490 Mon Sep 17 00:00:00 2001 From: "Andrew I. Christianson" Date: Wed, 9 Aug 2017 11:53:04 -0400 Subject: [PATCH] MINIFI-368 exclude hidden files when scanning for src files --- cmake/BuildTests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/BuildTests.cmake b/cmake/BuildTests.cmake index 2502537141..29603bfab9 100644 --- a/cmake/BuildTests.cmake +++ b/cmake/BuildTests.cmake @@ -21,7 +21,7 @@ MACRO(GETSOURCEFILES result curdir) FILE(GLOB children RELATIVE ${curdir} ${curdir}/*) SET(dirlist "") FOREACH(child ${children}) - IF( "${curdir}/${child}" MATCHES .*\\.cpp) + IF( "${child}" MATCHES ^[^.].*\\.cpp) LIST(APPEND dirlist ${child}) ENDIF()