mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
extract-projectfile-versions linked into the shared build root and copied Qt6Core.dll and Qt6Sql.dll next to its executable as a POST_BUILD step. The generated_classes.py edge runs ResInsight.exe out of that same directory with those DLLs loaded, and nothing orders the two edges relative to each other, so Ninja was free to schedule them concurrently. Overwriting a mapped DLL is a sharing violation on Windows, which failed the copy and took the build down. Give the target its own RUNTIME_OUTPUT_DIRECTORY. It is a standalone developer tool with no reason to share the application output directory, so moving it removes the conflict instead of narrowing it. Also switch the copy to copy_if_different, matching the equivalent step in the unit test target.