To start off, I\'ve taken a look at this post and couldn\'t find a solution to my problem. I\'m attempting to set up a library in a folder using two header files and link wi
As this is the canonical answer for "CMake cannot determine linker language for target", I found that when trying to link C code to c++ code and having everything else seemingly be right, this random forum post was the answer:
Try changing
PROJECT(HelloWorld C)
into
PROJECT(HelloWorld C CXX)
or just
PROJECT(HelloWorld)
(Source : https://exceptionshub.com/cmake-unable-to-determine-linker-language-with-c.html)
I noticed you are already doing this in your code, but I wanted to leave this here in case others have this same error for a different reason