From 36a37c36bb419a795ce0b1008c60dce420909f40 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 14 May 2020 12:46:45 +0100 Subject: [PATCH] CMake: Avoid GLOB_RECURSE when adding PIPs If git/zip-extraction add hidden directories containing files with a `.h` extension we don't want to try to build those files as PIPs. Using GLOB instead of GLOB_RECURSE should help to avoid files in nested directories. --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index bd2f3ed61a..8814f0d116 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -18,7 +18,7 @@ add_subdirectory(CMake) add_subdirectory(DemoRunner) function(_juce_add_pips) - file(GLOB_RECURSE headers + file(GLOB headers CONFIGURE_DEPENDS LIST_DIRECTORIES false "${CMAKE_CURRENT_SOURCE_DIR}/*.h")