pow with variable throws error

Hi, I’m new to C. When I try variable in pow function (for example pow(hightSq,2)) it returns "undefined reference to ‘pow’ ". I’ve read that it has to do something with UNIX compatibility and that you have to add arguments to compiler but whatever I add there it just wont work.

Thank you for any help with problem.

target_link_libraries(myprogram m)