openstreetmap / merkaartor

Home of Merkaartor, an openstreetmap mapping program.
http://merkaartor.be/
Other
290 stars 79 forks source link

Cmake unity build #278

Closed tnixeu closed 11 months ago

tnixeu commented 1 year ago

I was curious if merkaartor can be built with `CMAKE_UNITY_BUILD" turned on. Only a few build errors needed to be fixed.

I also changed how the QtLockedFile class is built. It was compiled once without the namespace and once with the namespace. This interfered with the unity build. It is now only built within the namespace.

A full release build now takes on my machine, a Ryzen 9 3900X about 15 seconds. Before it was about 25 seconds.