Hi,
I have a problem with parallel build of project with custom command.
Custom command generates two files and depends on generator script. For
optimization purpose first file created only when not exists. This lead
to conflict, even if I "protect" custom command with a custom target and
set explicit dependencies:
> cmake -H. -B_builds
> cmake --build _builds -- -j4 # First build OK
> touch generate.cmake
> cmake --build _builds -- -j4 # Second build. Unexpected `Script run`
several messages
[ 16%] Custom command
Script run
[ 33%] Custom target
[ 33%] Built target Generate
[ 66%] [ 66%] Custom command
Custom command
Script run
Script run
Scanning dependencies of target Blib
[ 66%] Custom command
Script run
[ 66%] [ 83%] Built target Alib
Custom command
Script run
[100%] Building CXX object CMakeFiles/Blib.dir/B.cpp.o
Linking CXX static library libBlib.a
[100%] Built target Blib
CMakeLists.txt: http://pastebin.com/dspw4j1S
generate.cmake: http://pastebin.com/XNS6hPRX
Is it a known issue?
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake