Skip to content

Commit

Permalink
attept to statically link luajit
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 13, 2024
1 parent 155ab9f commit dd01c77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ if (WIN32)
find_package(PkgConfig)
pkg_check_modules(LuaJIT REQUIRED IMPORTED_TARGET luajit)
pkg_check_modules(OpenAL REQUIRED IMPORTED_TARGET openal)
set(LUA_LIBRARIES "PkgConfig::LuaJIT")
set(LIBS ${LIBS} wsock32 ws2_32 pthread PkgConfig::OpenAL -static-libstdc++)
set(LIBS ${LIBS} PkgConfig::LuaJIT-static wsock32 ws2_32 pthread PkgConfig::OpenAL -static-libstdc++)
message(${OPENAL_LIBRARY})
endif()
find_package(glfw3 REQUIRED)
Expand Down

0 comments on commit dd01c77

Please sign in to comment.