From 693b31b5011982f0bd8c6ebf707159a056608ab5 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 24 Aug 2021 15:02:37 +0900 Subject: [PATCH] Fix race-condition between clang-format and program --- example02_threaded_raytracing/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/example02_threaded_raytracing/CMakeLists.txt b/example02_threaded_raytracing/CMakeLists.txt index b5e19cb..2540f63 100644 --- a/example02_threaded_raytracing/CMakeLists.txt +++ b/example02_threaded_raytracing/CMakeLists.txt @@ -37,6 +37,7 @@ if(CLANG_FORMAT) -style=file ${Example02_ALL_FILES} ) + add_dependencies(Example02 clang-format) endif() find_program(CLANG_TIDY "clang-tidy")