From ae171689399812604fca7625ba8704d178fbcd26 Mon Sep 17 00:00:00 2001 From: Bram Wasti Date: Wed, 4 Jan 2017 10:46:37 -0800 Subject: [PATCH] Ensure glob always happens --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ee42310b20..5910c5f7258 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project(Caffe2 CXX C) # TODO(bwasti): versioning +# We want CMake to GLOB everything every time. +execute_process(COMMAND find "${PROJECT_SOURCE_DIR}" -name "CMakeLists.txt" -exec touch {} \;) + # Useful functions. function (exclude OUTPUT INPUT) set(EXCLUDES ${ARGN})