mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 08:23:13 +00:00
Added explicit configuration header macro.
This commit is contained in:
@@ -3,6 +3,8 @@ include_directories(${GLFW_SOURCE_DIR}/src
|
||||
${GLFW_BINARY_DIR}/src
|
||||
${glfw_INCLUDE_DIRS})
|
||||
|
||||
add_definitions(-D_GLFW_USE_CONFIG_H)
|
||||
|
||||
set(common_HEADERS ${GLFW_BINARY_DIR}/src/glfw_config.h internal.h
|
||||
${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h
|
||||
${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h)
|
||||
|
||||
+3
-1
@@ -29,7 +29,9 @@
|
||||
#define _internal_h_
|
||||
|
||||
|
||||
#include "glfw_config.h"
|
||||
#if defined(_GLFW_USE_CONFIG_H)
|
||||
#include "glfw_config.h"
|
||||
#endif
|
||||
|
||||
#if defined(_GLFW_USE_OPENGL)
|
||||
// This is the default for glfw3.h
|
||||
|
||||
Reference in New Issue
Block a user