The Compiling GLFW guide should mention how to use the options when using cmake without a gui

trikri wrote on Sunday, December 13, 2015:

In http://www.glfw.org/docs/latest/compile.html#compile_options, a lot of options are listed. What is not mentioned is how these options should be used when using cmake directly from the command line, i.e. not using a gui, as many people do that. For example, I tried to compile glfw as a shared library according to the guide, but simply adding BUILD_SHARED_LIBS as a command line argument did not work. I then asked for help at another forum and was told that I should use “-DBUILD_SHARED_LIBS=ON” as an argument to cmake, which worked. To speficy key–value pairs in cmake you have to use the -D option, and that is what you do here.

I think it would be nice to have an explanation of how to use these options when using cmake without a gui, and perhaps an example or two would be good.

Good point. I’ll add it for 3.2.

elmindreda wrote on Wednesday, December 16, 2015:

Done.