I got same issue when compiling 3.6.0 on raspberry OS based on bullseye. I solved this by deleting last line with GenerateProperties in kstars/Options.kcfgc.cmake

Read More...