aarch64 - cmake: Could NOT find Threads

Good morning,

I am building kodi for my PI3. This worked fine until I added some cmake options today. Now I get the error:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)

I added “-pthread” to CFLAGS and CXXFLAGS but the error remains. So I added “BuildRequires: libboost_thread-devel” to the spec-file. The error still remains.

Now I am a bit confused. Can anyone help me here?

The package is here: https://build.opensuse.org/package/show/home:Herbster0815:HTPC/kodi

Problem solved. I guess the issue was somehow related to cmake build options.