I have several libraries in my build that are declared in the same 
CMakeLists.txt (by add_library). Unfortunately, the Visual Studio generator 
(2010, but I don't think it matters) puts "CMakeFiles\generate.stamp" in the 
output directory for that CMakeLists.txt. Unless I'm mistaken, when being built 
in parallel, these targets sometimes seem to collide, yielding an error like 
this:

CUSTOMBUILD : CMake error : Cannot restore timestamp 
<outdir>\CMakeFiles\generate.stamp

Other than splitting each target into its own CMakeLists.txt file in its own 
directory, can anyone suggest a good workaround? I'm using CMake 2.8.7, and it 
doesn't look like the relevant code has been changed since then.

Thank you,
Todd
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to