Hi!
I have custom command to create C++ sources to be compiled. One simple example is having part of the sources in a tarball (there are very specific requirements, I know that this is not normal), or have them generated by a script. A common solution / workaround [1] [2] [3] is using add_custom_target()
.
Unfortunately, with CMP0071 NEW this does not work anymore. I created a small example demonstrating the issue https://gitlab.com/inorton/cmake-custom-concurrency/-/issues/2 which can be found here [new users can only post 2 links]
In a Makefile I could use “.NOTPARALLEL” or create some “stamp file” target (which possibly recursively invokes make), but I don’t know how to best do this from cmake.
Any suggestions?
[1] https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
[2] [new users can only post 2 links]
[3] [new users can only post 2 links]