I am new to vala and I am trying to create something with CMAKE. However, towards the end, he throws undefined reference to 'g_thread_init' . I added --thread to the OPTIONS part of ValaPrecompile. I also tried adding pkg_check_modules(DEPS REQUIRED gthread-2.0) and add_definitions(${CFLAGS} -lgthread-2.0 ) , but no luck.
The output of pkg-config --libs gthread-2.0 :
-pthread -lgthread-2.0 -lrt -lglib-2.0
Any ideas?
source share