Skip to content

Commit

Permalink
update src/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 13, 2024
1 parent b04ae89 commit b510985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ if (NOT APPLE)
find_package(EnTT REQUIRED)
endif()

set(LIBS "")

if (WIN32)
if(VOXELENGINE_BUILD_WINDOWS_VCPKG)
if (MSVC)
Expand All @@ -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)
Expand Down Expand Up @@ -63,8 +66,6 @@ else()
set(VORBISLIB ${VORBIS_LDFLAGS})
endif()

set(LIBS "")

if(UNIX)
find_package(glfw3 3.3 REQUIRED)
find_package(Threads REQUIRED)
Expand Down

0 comments on commit b510985

Please sign in to comment.