mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9180 from vovkasm/cmake-mac-quick-fix
Quick and dirty fix after my error. This defines fix build on linux with...
This commit is contained in:
commit
8fac79c951
|
@ -56,7 +56,9 @@ if(WINDOWS)
|
|||
${cocos_root}/external/lua/luasocket/wsocket.c
|
||||
)
|
||||
elseif(UNIX)
|
||||
add_definitions(-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE)
|
||||
if(LINUX)
|
||||
add_definitions(-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE)
|
||||
endif()
|
||||
list(APPEND lua_cocos2d_source_files
|
||||
${cocos_root}/external/lua/luasocket/serial.c
|
||||
${cocos_root}/external/lua/luasocket/unix.c
|
||||
|
|
Loading…
Reference in New Issue