Open geoffmcl opened 6 years ago
First to examine the current install targets -
Release config install -
<INSTALL_ROOT>\bin\glew32.dll
<INSTALL_ROOT>\bin\glewinfo.exe
<INSTALL_ROOT>\bin\visualinfo.exe
<INSTALL_ROOT>\include\GL\glew.h
<INSTALL_ROOT>\include\GL\glxew.h
<INSTALL_ROOT>\include\GL\wglew.h
<INSTALL_ROOT>\lib\cmake\glew\CopyImportedTargetProperties.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-config.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets-release.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets.cmake
<INSTALL_ROOT>\lib\glew32.lib
<INSTALL_ROOT>\lib\glew32s.lib
<INSTALL_ROOT>\lib\pkgconfig\glew.pc
Debug config install -
<INSTALL_ROOT>\bin\glew32d.dll
<INSTALL_ROOT>\bin\glewinfo.exe
<INSTALL_ROOT>\bin\visualinfo.exe
<INSTALL_ROOT>\include\GL\glew.h
<INSTALL_ROOT>\include\GL\glxew.h
<INSTALL_ROOT>\include\GL\wglew.h
<INSTALL_ROOT>\lib\cmake\glew\CopyImportedTargetProperties.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-config.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets-debug.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets.cmake
<INSTALL_ROOT>\lib\glew32d.lib
<INSTALL_ROOT>\lib\glew32d.pdb
<INSTALL_ROOT>\lib\glew32sd.lib
<INSTALL_ROOT>\lib\pkgconfig\glew.pc
That immediately points out another small problem. If you installed the DEBUG config after
the RELEASE config, the Debug EXE's would overwrite the Release EXE's. But that can be easily fixed in CMakeLists.txt
....
Ok, with the above commit the Debug config install becomes -
<INSTALL_ROOT>\bin\glew32d.dll
<INSTALL_ROOT>\bin\glewinfod.exe
<INSTALL_ROOT>\bin\visualinfod.exe
<INSTALL_ROOT>\include\GL\glew.h
<INSTALL_ROOT>\include\GL\glxew.h
<INSTALL_ROOT>\include\GL\wglew.h
<INSTALL_ROOT>\lib\cmake\glew\CopyImportedTargetProperties.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-config.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets-debug.cmake
<INSTALL_ROOT>\lib\cmake\glew\glew-targets.cmake
<INSTALL_ROOT>\lib\glew32d.lib
<INSTALL_ROOT>\lib\glew32d.pdb
<INSTALL_ROOT>\lib\glew32sd.lib
<INSTALL_ROOT>\lib\pkgconfig\glew.pc
This looks like a good install...
Reviewing my previous x64 install it is quite a mess
Note the ugly mixture of
32
and64
. This seems wrong and unnecessary. Note this folder already has an x64 indication, and I do not think32
and64
should be at anytime be mixed in the same directory. The32
comes from the platform name ofWIN32
and this is maybe ok, but the use of64
seems wrong!It appears at some time a
prefix
of lib was added to the static library, and an_s
added? But see #1 ... it seems sufficient that it be calledglew32s.lib
andglew32sd.lib
...It seems my cmake
3.10.2
now includes a FindGLEW.cmake module, so I should carefully check this ... ok it has -This seems to establish the name should be
glew32s
only, and it is strange that it does not includeglew32sd
...Need to first clean up my current messy install... and check carefully through other
FindGLEW.cmake
that I have used over the years when one was not included with the cmake distribution, or even where I decided I needed a local version to correct for the above seeming error...Lots to think about, explore and understand here...
Would really appreciate feedback from other who use this great library in Windows... thanks...