mirror of https://github.com/bjornbytes/lovr.git
parent
1a1605f9ce
commit
64f9a310c3
|
@ -73,24 +73,18 @@ elseif(UNIX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# enet
|
# enet
|
||||||
if(LOVR_ENABLE_ENET)
|
if(LOVR_ENABLE_ENET AND NOT EMSCRIPTEN)
|
||||||
if(LOVR_SYSTEM_ENET)
|
if(LOVR_SYSTEM_ENET)
|
||||||
pkg_search_module(ENET REQUIRED enet)
|
pkg_search_module(ENET REQUIRED enet)
|
||||||
include_directories(${ENET_INCLUDE_DIRS})
|
include_directories(${ENET_INCLUDE_DIRS})
|
||||||
set(LOVR_ENET ${ENET_LIBRARIES})
|
set(LOVR_ENET ${ENET_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
if(EMSCRIPTEN)
|
|
||||||
set(HAVE_HAS_SOCKLEN_T TRUE CACHE BOOL "")
|
|
||||||
endif()
|
|
||||||
add_subdirectory(deps/enet enet)
|
add_subdirectory(deps/enet enet)
|
||||||
include_directories(deps/enet/include)
|
include_directories(deps/enet/include)
|
||||||
set(LOVR_ENET enet)
|
set(LOVR_ENET enet)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(LOVR_ENET ${LOVR_ENET} ws2_32 winmm)
|
set(LOVR_ENET ${LOVR_ENET} ws2_32 winmm)
|
||||||
endif()
|
endif()
|
||||||
if(EMSCRIPTEN)
|
|
||||||
target_compile_definitions(enet PRIVATE __APPLE__)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue