🐛 Fixed OGRE not finding ZZip
This commit is contained in:
parent
9b4dc66aac
commit
763f10693a
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
build/
|
build/
|
||||||
tmp/
|
tmp/
|
||||||
upload.*
|
upload.*
|
||||||
.idea/
|
.idea/
|
||||||
|
build_tmp.py
|
@ -42,12 +42,20 @@ class OGREConan(ConanFile):
|
|||||||
"find_package(FreeImage)",
|
"find_package(FreeImage)",
|
||||||
"find_package(ConanFreeImage)",
|
"find_package(ConanFreeImage)",
|
||||||
)
|
)
|
||||||
|
tools.replace_in_file(
|
||||||
|
"CMake/Dependencies.cmake",
|
||||||
|
"find_package(ZZip)",
|
||||||
|
"find_package(ConanZZip)",
|
||||||
|
)
|
||||||
tools.replace_in_file(
|
tools.replace_in_file(
|
||||||
"CMake/Packages/FindDirectX11.cmake",
|
"CMake/Packages/FindDirectX11.cmake",
|
||||||
'find_path(DirectX11_INCLUDE_DIR NAMES d3d11.h HINTS "',
|
'find_path(DirectX11_INCLUDE_DIR NAMES d3d11.h HINTS "',
|
||||||
'find_path(DirectX11_INCLUDE_DIR NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NAMES d3d11.h HINTS "',
|
'find_path(DirectX11_INCLUDE_DIR NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NAMES d3d11.h HINTS "',
|
||||||
)
|
)
|
||||||
shutil.copyfile("patches/FindFreeImage.cmake", "CMake/Packages/FindConanFreeImage.cmake")
|
shutil.copyfile(
|
||||||
|
"patches/FindFreeImage.cmake", "CMake/Packages/FindConanFreeImage.cmake"
|
||||||
|
)
|
||||||
|
shutil.copyfile("patches/FindZZip.cmake", "CMake/Packages/FindConanZZip.cmake")
|
||||||
for patch in self.conan_data["patches"][self.version]:
|
for patch in self.conan_data["patches"][self.version]:
|
||||||
tools.patch(**patch)
|
tools.patch(**patch)
|
||||||
|
|
||||||
|
5
ogre/1.11/patches/FindZZip.cmake
Normal file
5
ogre/1.11/patches/FindZZip.cmake
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
include(Findzziplib)
|
||||||
|
|
||||||
|
set(ZZip_FOUND "${zziplib_FOUND}" CACHE BOOL "Conan patch for zziplib" FORCE)
|
||||||
|
set(ZZip_INCLUDE_DIRS "${zziplib_INCLUDE_DIR}" CACHE STRING "Conan patch for zziplib" FORCE)
|
||||||
|
set(ZZip_LIBRARIES "${zziplib_LIBRARIES}" CACHE STRING "Conan patch for zziplib" FORCE)
|
Loading…
x
Reference in New Issue
Block a user