diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4a8c47333..0ebe89eb7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,6 +20,8 @@ if (NOT APPLE) find_package(EnTT REQUIRED) endif() +set(LIBS "") + if (WIN32) if(VOXELENGINE_BUILD_WINDOWS_VCPKG) if (MSVC) @@ -32,6 +34,7 @@ if (WIN32) message(STATUS "LUA Include Dir: ${LUA_INCLUDE_DIR}") message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}") set(LUA_LIBRARIES "PkgConfig::LuaJIT") + set(LIBS ${LIBS} wsock32 ws2_32) #set(LUA_LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/../build/vcpkg_installed/x64-mingw-dynamic/lib/libluajit.dll.a") endif() find_package(glfw3 REQUIRED) @@ -63,8 +66,6 @@ else() set(VORBISLIB ${VORBIS_LDFLAGS}) endif() -set(LIBS "") - if(UNIX) find_package(glfw3 3.3 REQUIRED) find_package(Threads REQUIRED)