mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Return old behavior
This commit is contained in:
parent
398206653b
commit
c18c210fe0
2 changed files with 7 additions and 5 deletions
|
|
@ -6,6 +6,7 @@ option(VOXELENGINE_BUILD_TESTS "" OFF)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
# We use two types linking: for clang build is static (vcpkg triplet x64-windows-static)
|
# We use two types linking: for clang build is static (vcpkg triplet x64-windows-static)
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,12 @@ set(LIBS "")
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
# Use directly linking to lib instead PkgConfig (because pkg-config dont install on windows as default)
|
# Use directly linking to lib instead PkgConfig (because pkg-config dont install on windows as default)
|
||||||
# TODO: Do it with findLua.
|
# TODO: Do it with findLua.
|
||||||
set(LUA_INCLUDE_DIR "$ENV{VCPKG_ROOT}/packages/luajit_${VCPKG_TARGET_TRIPLET}/include/luajit")
|
if (MSVC)
|
||||||
find_package(Lua51 REQUIRED)
|
set(LUA_INCLUDE_DIR "$ENV{VCPKG_ROOT}/packages/luajit_${VCPKG_TARGET_TRIPLET}/include/luajit")
|
||||||
|
find_package(Lua REQUIRED)
|
||||||
message(STATUS "LUA Libraries: ${LUA_LIBRARIES}")
|
else()
|
||||||
message(STATUS "LUA Include Dir: ${LUA_INCLUDE_DIR}")
|
set(LIBS ${LIBS} luajit-5.1)
|
||||||
|
endif()
|
||||||
find_package(glfw3 REQUIRED)
|
find_package(glfw3 REQUIRED)
|
||||||
find_package(glm REQUIRED)
|
find_package(glm REQUIRED)
|
||||||
find_package(vorbis REQUIRED)
|
find_package(vorbis REQUIRED)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue