mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
add define to make sure constants like M_PI are included on windows
This commit is contained in:
parent
c7ec767565
commit
680f611968
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ if (UNIX AND NOT APPLE)
|
|||
endif (UNIX AND NOT APPLE)
|
||||
|
||||
if (WIN32)
|
||||
add_definitions( -D_USE_MATH_DEFINES ) # apparently needed to get M_PI and other defines from cmath/math.h
|
||||
#set(GLUT_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external/glut)
|
||||
#set(GL_HEADERS "#define GLEW_STATIC\n#define FREEGLUT_STATIC\n#define FREEGLUT_LIB_PRAGMAS 0\n#include <GL/glew.h>\n#include <GL/wglew.h>\n#include <GL/freeglut_std.h>\n#include <GL/freeglut_ext.h>")
|
||||
|
||||
|
|
Loading…
Reference in a new issue