Re: [CMake] CMake exclusive lock

2010-08-02 Thread David Cole
I can think of two ways to address a problem like this. 1) Serialize access to the "central file" by establishing dependencies among all the writers to the central file. Make your nth call depend on n-1, n-1 on n-2, ... 3 on 2, 2 on 1. That forces the steps that access the file to run serially and

[CMake] CMake exclusive lock

2010-08-02 Thread Denis Scherbakov
Hi! I have a project, where for some targets I have a POST_BUILD rule, which adds some data about this target into a "central file". If I build a project with several threads sometimes I get errors, when both threads try to write into this "central file" at the same time. So I was wondering, if