David

Results 16 comments of David

I wasn't using any(!). Shouldn't cmake warn me about that before even trying to proceed and find OpenGL version? Anyways, let's take a step back first. This is actually currently...

I made a PR [#9](https://github.com/matus-chochlik/oglplu2/pull/9).

Great! As of latest, with the following symbols set: ``` GLEW_INCLUDE_DIRS = C:/Users/deranen/Programming/glew-1.13.0/include GLEW_LIBRARIES = C:/Users/deranen/Programming/glew-1.13.0/lib/Release/x64/glew32.lib GLUT_INCLUDE_DIRS = C:/Users/deranen/Programming/freeglut-3.0.0/include GLUT_LIBRARIES = C:/Users/deranen/Programming/freeglut-3.0.0/lib/Debug/freeglutd.lib ``` CMake outputs the following: ``` Generating fixes...

Here is the output: ``` ;;C:/Users/deranen/Programming/freeglut-3.0.0/lib/Debug/freeglut_staticd.lib ``` As you can see I am using freeglut. Is that ok?

The following line in `ConfigGL.cmake` sets `OGLPLUS_GL_LIBRARIES`: ``` set(OGLPLUS_GL_LIBRARIES ${GLEW_LIBRARIES} ${OPENGL_LIBRARIES}) ``` What's interesting is that `${GLEW_LIBRARIES}` is empty, and `${OPENGL_LIBRARIES}` contains the `glut32.lib` library. So when `${GLEW_LIBRARIES}` is queried...

Ugh, I messed up and had by mistake commented out line 45 in `GLVerExt.cmake`: `set(CONFIG_REQUIRED_LIBRARIES "${OGLPLUS_GL_LIBRARIES}")`. Yep, that happened. However, I still get the same build error: `has_GL_4_5.obj : error...

How do I feed that into the `try_run` cmake function? Or do I set it somewhere else? cmake can be confusing!

I finally got it working! This is what I had to add after `COMPILE_DEFINITIONS`: `"-DGLEW_STATIC -DFREEGLUT_STATIC "` Something about the fact that you need static versions of these libraries in...

I tried setting the environment variable in my project settings, but I don't get any output at least when testing this on a working GPU in Windows. Should log level...