Cmake编译SDL2

cmake -G"NMake Makefiles" && nmake 中出现了以下这个RC资源编译器报告的错误:

invalid language id when compiling version.rc.res

SDL的论坛中也有人遇到这个问题了,但是死活没人回复解决:

https://forums.libsdl.org/viewtopic.php?t=12153

于是乎就不用CMake了,直接用SDL提供的VS2008的工程,用VS2013打开,直接点build,过程完美,好无错误。

references:

https://www.libsdl.org/tmp/SDL/VisualC.html

原文地址:https://www.cnblogs.com/foohack/p/6542836.html