cmake: Replace another bogus check for MSVC with WIN32
Otherwise attempting to compile with any other compiler targeting Win32 results in build errors with the Lua code, unless (presumably) you are targeting Cygwin or another full POSIX implementation on Win32.
This commit is contained in:
parent
00f0322690
commit
7db1de5421
1 changed files with 3 additions and 1 deletions
|
@ -37,10 +37,12 @@ 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})
|
||||
endif(NOT MSVC)
|
||||
|
||||
if(NOT WIN32)
|
||||
# Use the safer `mkstemp' instead of `tmpnam' on POSIX systems.
|
||||
add_definitions(-DLUA_USE_POSIX)
|
||||
endif(NOT MSVC)
|
||||
endif(NOT WIN32)
|
||||
|
||||
if(MSVC)
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
|
|
Loading…
Add table
Reference in a new issue