[Enhancement/Hint for users] Make finding "project(...)" in CMakeLists.txt more robust
Hi,
I had a problem to make jucipp recognize my CMakeLists.txt. Sadly I was not able to find a way to manually configure anything. For better or for worse everything either works automagically or it does not work.
Anyway, I found the reason for my troubles. Its the regex here https://gitlab.com/cppit/jucipp/-/blob/master/src/cmake.cpp#L19. I think it tried to search for an EOL token, but was not able to find it. This is because the CMakeLists.txt was saved under Windows and accessed under Linux. Converting the EOL token from Windows to Linux in Notepad++ solved the issue.
Maybe this issue here is enough to notify other users. Maybe the regex can be changed to be more robust.