Fix for building on Windows.

pull/47/merge
Robert G. Jakabosky 14 years ago
parent 04208f1059
commit a58d7ad389

@ -29,6 +29,10 @@ include(FindLua51)
if(NOT ${LUA51_FOUND})
message(FATAL_ERROR "The FindLua51 module could not find lua :-(")
endif()
if(WIN32)
set(COMMON_CFLAGS "${COMMON_CFLAGS} -I${LUA_INCLUDE_DIR}")
set(COMMON_LDFLAGS "${COMMON_LDFLAGS} ${LUA_LIBRARY}")
endif()
## MAC OSX needs extra linker flags
if(APPLE)
set(COMMON_LDFLAGS "${COMMON_LDFLAGS} -undefined dynamic_lookup")

@ -42,6 +42,7 @@
/* for MinGW32 compiler need to include <stdint.h> */
#ifdef __GNUC__
#include <stdint.h>
#include <stdbool.h>
#else
/* define some standard types missing on Windows. */

Loading…
Cancel
Save