Skip to content

Commit

Permalink
fix: build cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 21, 2023
1 parent 8665152 commit 71e6af5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
16 changes: 0 additions & 16 deletions cmake/FindZLIB.cmake

This file was deleted.

7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@ add_definitions(-D"BUILD_REVISION=\\\"${BUILD_REVISION}\\\"")
# *****************************************************************************
find_package(OpenSSL QUIET)
find_package(PhysFS REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Protobuf REQUIRED)
find_package(LibLZMA REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(asio REQUIRED)
find_package(Threads REQUIRED)
find_package(STDUUID CONFIG REQUIRED)
find_package(pugixml CONFIG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(libzip CONFIG REQUIRED)
if(APPLE)
# Required for Physfs
find_library(FOUNDATION Foundation REQUIRED)
Expand Down Expand Up @@ -465,6 +466,8 @@ if(MSVC)
LibLZMA::LibLZMA
winmm.lib
pugixml::pugixml
ZLIB::ZLIB
libzip::zip
)
elseif(ANDROID)
target_include_directories(${PROJECT_NAME}
Expand All @@ -486,7 +489,6 @@ elseif(ANDROID)
${LUA_LIBRARY}
${LUAJIT_LIBRARY}
${PHYSFS_LIBRARY}
${ZLIB_LIBRARY}
${PROTOBUF_LIBRARY}
${NLOHMANN_JSON_LIBRARY}
${EGL_LIBRARY}
Expand Down Expand Up @@ -527,7 +529,6 @@ else()
PRIVATE
${LUAJIT_LIBRARY}
${PHYSFS_LIBRARY}
${ZLIB_LIBRARY}
${PROTOBUF_LIBRARY}
${NLOHMANN_JSON_LIBRARY}
${GLEW_LIBRARY}
Expand Down

0 comments on commit 71e6af5

Please sign in to comment.