You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIND_PACKAGE(GLUT)
IF ( NOT GLUT_FOUND )
IF ( MSVC )
SET ( GLUT_FOUND 1 )
SET ( GLUT_INCLUDE_DIR ${Assimp_SOURCE_DIR}/samples/freeglut/ )
SET ( GLUT_LIBRARIES ${Assimp_SOURCE_DIR}/samples/freeglut/lib/freeglut.lib )
ELSE ()
MESSAGE( WARNING "Please install glut." )
ENDIF ()
ENDIF ()
Suppose we are starting a DEBUG(i.e. CMAKE_BUILD_TYPE = Debug) build in Windows using the MSVC compiler. This causes the assimp library to use a debugging runtime-library. However, by default, freeglut.lib prefer release runtime library.
To Reproduce
Steps to reproduce the behavior:
Download assimp
Download and build freeglut (with Debug and Release) and install both version in assimp/samples/freeglut
Build assimp with the -DASSIMP_BUILD_SAMPLES=ON in Debug mode
Expected behavior
The CMakeLists.txt of these samples must automatically choose between freeglut.lib and freeglutd.lib
Platform (please complete the following information):
Windows, MSVC
Additional context
In general, according to my opinion, it all looks wierd. Because, FindGLUT.cmake, trying to find glut.h but these samples use freeglut.h. Am I missing something?
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
Files such as SimpleOpenGL/CMakeLists.txt and SimpleTexturedOpenGL/CMakeLists.txt contain are very similar section of code which seems to have an inaccuracy.
Consider
Suppose we are starting a DEBUG(i.e.
CMAKE_BUILD_TYPE = Debug
) build in Windows using the MSVC compiler. This causes the assimp library to use a debugging runtime-library. However, by default,freeglut.lib
prefer release runtime library.To Reproduce
Steps to reproduce the behavior:
assimp/samples/freeglut
-DASSIMP_BUILD_SAMPLES=ON
in Debug modeExpected behavior
The
CMakeLists.txt
of these samples must automatically choose betweenfreeglut.lib
andfreeglutd.lib
Platform (please complete the following information):
Additional context
In general, according to my opinion, it all looks wierd. Because, FindGLUT.cmake, trying to find
glut.h
but these samples usefreeglut.h
. Am I missing something?The text was updated successfully, but these errors were encountered: