diff --git a/ogre-caelum/all/conanfile.py b/ogre-caelum/all/conanfile.py index 9660282..30f8d68 100644 --- a/ogre-caelum/all/conanfile.py +++ b/ogre-caelum/all/conanfile.py @@ -7,7 +7,7 @@ class CaelumConan(ConanFile): url = "https://github.com/RigsOfRods/Caelum/issues" description = "Caelum is a library which provides cross-platform socket abstraction" settings = "os", "compiler", "build_type", "arch" - generators = "cmake_paths" + generators = "cmake_find_package" exports_sources = "patches/**" def requirements(self): @@ -29,6 +29,7 @@ class CaelumConan(ConanFile): cmake.install() def package_info(self): + self.cpp_info.name = "Caelum" self.cpp_info.includedirs = [ 'include', 'include/Caelum' @@ -36,5 +37,4 @@ class CaelumConan(ConanFile): self.cpp_info.libs = tools.collect_libs(self) def package_id(self): - self.cpp_info.name = "Caelum" self.info.requires["ogre3d"].full_recipe_mode() diff --git a/ogre-caelum/all/patches/0.6.4/CMakeLists.txt.patch b/ogre-caelum/all/patches/0.6.4/CMakeLists.txt.patch index 79bfd4f..fbc2d12 100644 --- a/ogre-caelum/all/patches/0.6.4/CMakeLists.txt.patch +++ b/ogre-caelum/all/patches/0.6.4/CMakeLists.txt.patch @@ -1,14 +1,15 @@ --- CMakeLists.txt +++ CMakeLists.txt -@@ -9,6 +9,7 @@ - cmake_minimum_required(VERSION 3.0.2) - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) +@@ -7,7 +7,7 @@ + # cmake system for Caelum updated on 6-10-2017 by Edgar{at}AnotherFoxGuy{DOT}com + + cmake_minimum_required(VERSION 3.0.2) +-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) ++set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake) -+include(${CMAKE_BINARY_DIR}/conan_paths.cmake) # add some functions we use that are shipped with cmake - INCLUDE(CheckLibraryExists) -@@ -18,7 +19,7 @@ +@@ -18,7 +18,7 @@ INCLUDE(CheckCSourceCompiles) # define the project @@ -16,4 +17,13 @@ +project(Caelum VERSION 0.6.4) # some versioning things - SET(LIB_MAJOR_VERSION ${Caelum_VERSION_MAJOR}) \ No newline at end of file + SET(LIB_MAJOR_VERSION ${Caelum_VERSION_MAJOR}) +@@ -34,7 +34,7 @@ + + SET(CMAKE_USE_RELATIVE_PATHS OFF) + +-find_package(OGRE REQUIRED CONFIG) ++find_package(OGRE REQUIRED) + link_directories(${OGRE_LIBRARY_DIRS}) + + # setup paths diff --git a/ogre-pagedgeometry/all/conanfile.py b/ogre-pagedgeometry/all/conanfile.py index a7d8b1d..69aa669 100644 --- a/ogre-pagedgeometry/all/conanfile.py +++ b/ogre-pagedgeometry/all/conanfile.py @@ -1,13 +1,13 @@ from conans import ConanFile, CMake, tools -class CaelumConan(ConanFile): +class PagedGeometryConan(ConanFile): name = "ogre3d-pagedgeometry" license = "GNU Lesser General Public License v2.1" url = "https://github.com/RigsOfRods/Caelum/issues" description = "PagedGeometry is a plugin for OGRE for rendering of dense vegetation " settings = "os", "compiler", "build_type", "arch" - generators = "cmake_paths" + generators = "cmake_find_package" exports_sources = "patches/**" def requirements(self): @@ -29,6 +29,7 @@ class CaelumConan(ConanFile): cmake.install() def package_info(self): + self.cpp_info.name = "PagedGeometry" self.cpp_info.includedirs = [ 'include', 'include/PagedGeometry' @@ -36,5 +37,4 @@ class CaelumConan(ConanFile): self.cpp_info.libs = tools.collect_libs(self) def package_id(self): - self.cpp_info.name = "PagedGeometry" self.info.requires["ogre3d"].full_recipe_mode() diff --git a/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch b/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch index 0e22691..b9b0bde 100644 --- a/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch +++ b/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch @@ -1,14 +1,15 @@ --- CMakeLists.txt +++ CMakeLists.txt -@@ -9,6 +9,7 @@ - cmake_minimum_required( VERSION 3.0.2 ) - set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ) +@@ -7,7 +7,7 @@ + # cmake system for PagedGeometry updated on 6-10-2017 by Edgar{at}AnotherFoxGuy{DOT}com + + cmake_minimum_required( VERSION 3.0.2 ) +-set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ) ++set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake ) -+include(${CMAKE_BINARY_DIR}/conan_paths.cmake) # add some functions we use that are shipped with cmake - INCLUDE(CheckLibraryExists) -@@ -20,7 +21,7 @@ +@@ -20,7 +20,7 @@ # some versioning things SET(LIB_MAJOR_VERSION "1") SET(LIB_MINOR_VERSION "2") @@ -16,4 +17,4 @@ +SET(LIB_BUILD_VERSION "1") SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}") IF(NOT DEFINED LIB_INSTALL_DIR) - SET(LIB_INSTALL_DIR "lib${LIB_SUFFIX}") \ No newline at end of file + SET(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")