Skip to content

Commit

Permalink
g2o: fix CSparse support
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed May 6, 2024
1 parent 86d1a4f commit 3e3726d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/g2o/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def _patch_sources(self):
replace_in_file(self, os.path.join(self.source_folder, "g2o", "solvers", "csparse", "CMakeLists.txt"),
"$<BUILD_INTERFACE:${CSPARSE_INCLUDE_DIR}>",
'"$<BUILD_INTERFACE:${CSPARSE_INCLUDE_DIR}>"')
replace_in_file(self, os.path.join(self.source_folder, "g2o", "solvers", "csparse", "CMakeLists.txt"),
"${CSPARSE_LIBRARY}", "${CSPARSE_LIBRARIES}")

def build(self):
self._patch_sources()
Expand Down

0 comments on commit 3e3726d

Please sign in to comment.