forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#8873) fcl: modernize + simplify cmake patch
* modernize * bump eigen & octomap * add fcl/0.7.0 * cleanup after merge of master
- Loading branch information
Showing
9 changed files
with
90 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
sources: | ||
"0.6.1": | ||
url: "https://github.com/flexible-collision-library/fcl/archive/v0.6.1.tar.gz" | ||
sha256: "c8a68de8d35a4a5cd563411e7577c0dc2c626aba1eef288cb1ca88561f8d8019" | ||
"0.7.0": | ||
url: "https://github.com/flexible-collision-library/fcl/archive/refs/tags/0.7.0.tar.gz" | ||
sha256: "90409e940b24045987506a6b239424a4222e2daf648c86dd146cbcb692ebdcbc" | ||
"0.6.1": | ||
url: "https://github.com/flexible-collision-library/fcl/archive/v0.6.1.tar.gz" | ||
sha256: "c8a68de8d35a4a5cd563411e7577c0dc2c626aba1eef288cb1ca88561f8d8019" | ||
patches: | ||
"0.7.0": | ||
- patch_file: "patches/0001-fix-cmake-0.7.0.patch" | ||
base_path: "source_subfolder" | ||
- patch_file: "patches/0002-fix-mingw-bigobj.patch" | ||
base_path: "source_subfolder" | ||
"0.6.1": | ||
- patch_file: "patches/conanize-cmake-0.6.1.patch" | ||
- patch_file: "patches/0001-fix-cmake-0.6.1.patch" | ||
base_path: "source_subfolder" | ||
- patch_file: "patches/fix-mingw-bigobj.patch" | ||
- patch_file: "patches/0002-fix-mingw-bigobj.patch" | ||
base_path: "source_subfolder" | ||
- patch_file: "patches/fix-alias-type-msvc2015.patch" | ||
- patch_file: "patches/0003-fix-alias-type-msvc2015.patch" | ||
base_path: "source_subfolder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -72,7 +72,7 @@ if(MSVC OR MSVC90 OR MSVC10) | ||
endif (MSVC OR MSVC90 OR MSVC10) | ||
|
||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) | ||
-set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | ||
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | ||
include(CMakePackageConfigHelpers) | ||
include(GenerateExportHeader) | ||
include(GNUInstallDirs) | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -103,6 +103,8 @@ if(FCL_HAVE_OCTOMAP) | ||
# available, otherwise fall back to OCTOMAP_INCLUDE_DIRS and OCTOMAP_LIBRARIES | ||
if(TARGET octomap) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC octomap) | ||
+ elseif(TARGET octomap-static) | ||
+ target_link_libraries(${PROJECT_NAME} PUBLIC octomap-static) | ||
elseif(OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARIES) | ||
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "${OCTOMAP_INCLUDE_DIRS}") | ||
target_link_libraries(${PROJECT_NAME} PUBLIC "${OCTOMAP_LIBRARIES}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -66,7 +66,7 @@ if(MSVC OR MSVC90 OR MSVC10) | ||
endif (MSVC OR MSVC90 OR MSVC10) | ||
|
||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) | ||
-set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | ||
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | ||
include(CMakePackageConfigHelpers) | ||
include(GenerateExportHeader) | ||
include(GNUInstallDirs) | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -103,6 +103,8 @@ if(FCL_HAVE_OCTOMAP) | ||
# available, otherwise fall back to OCTOMAP_INCLUDE_DIRS and OCTOMAP_LIBRARIES | ||
if(TARGET octomap) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC octomap) | ||
+ elseif(TARGET octomap-static) | ||
+ target_link_libraries(${PROJECT_NAME} PUBLIC octomap-static) | ||
elseif(OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARIES) | ||
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "${OCTOMAP_INCLUDE_DIRS}") | ||
target_link_libraries(${PROJECT_NAME} PUBLIC "${OCTOMAP_LIBRARIES}") |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
versions: | ||
"0.6.1": | ||
folder: all | ||
"0.7.0": | ||
folder: all | ||
"0.6.1": | ||
folder: all |