exclude LUA_USE_POSIX define from MSVC project file generator

This commit is contained in:
Anonymissimus 2011-06-13 23:32:16 +00:00
parent ff2f64c59f
commit 23eb9861be

View file

@ -34,6 +34,9 @@ if(NOT MSVC)
set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
exec_program(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
add_definitions(${SDL_CFLAGS})
# Use the safer `mkstemp' instead of `tmpnam' on POSIX systems.
add_definitions(-DLUA_USE_POSIX)
endif(NOT MSVC)
if(MSVC)
@ -41,9 +44,6 @@ if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif(MSVC)
# Use the safer `mkstemp' instead of `tmpnam' on POSIX systems.
add_definitions(-DLUA_USE_POSIX)
#check for some compiler/arch specific things and export defines accordingly...
include(SearchForStuff)