diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fc9a562..2a00e67c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,24 +73,18 @@ elseif(UNIX) endif() # enet -if(LOVR_ENABLE_ENET) +if(LOVR_ENABLE_ENET AND NOT EMSCRIPTEN) if(LOVR_SYSTEM_ENET) pkg_search_module(ENET REQUIRED enet) include_directories(${ENET_INCLUDE_DIRS}) set(LOVR_ENET ${ENET_LIBRARIES}) else() - if(EMSCRIPTEN) - set(HAVE_HAS_SOCKLEN_T TRUE CACHE BOOL "") - endif() add_subdirectory(deps/enet enet) include_directories(deps/enet/include) set(LOVR_ENET enet) if(WIN32) set(LOVR_ENET ${LOVR_ENET} ws2_32 winmm) endif() - if(EMSCRIPTEN) - target_compile_definitions(enet PRIVATE __APPLE__) - endif() endif() endif()