Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtsam: Add options new options #17931

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions recipes/gtsam/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GtsamConan(ConanFile):
"with_TBB": [True, False],
"with_eigen_MKL": [True, False],
"with_eigen_MKL_OPENMP": [True, False],
"with_march_native": [True, False],
"throw_cheirality_exception": [True, False],
"allow_deprecated_since_V4": [True, False],
"typedef_points_to_vectors": [True, False],
Expand All @@ -43,6 +44,7 @@ class GtsamConan(ConanFile):
"install_matlab_toolbox": [True, False],
"install_cython_toolbox": [True, False],
"install_cppunitlite": [True, False],
"use_system_eigen": [True, False],
}
default_options = {
"shared": False,
Expand All @@ -54,6 +56,7 @@ class GtsamConan(ConanFile):
"with_TBB": False,
"with_eigen_MKL": False,
"with_eigen_MKL_OPENMP": False,
"with_march_native": False,
"throw_cheirality_exception": True,
"allow_deprecated_since_V4": True,
"typedef_points_to_vectors": False,
Expand All @@ -67,6 +70,7 @@ class GtsamConan(ConanFile):
"install_matlab_toolbox": False,
"install_cython_toolbox": False,
"install_cppunitlite": True,
"use_system_eigen": True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably make the self.requires("eigen/3.4.0") conditional on this being set to True then as well.

}

def export_sources(self):
Expand Down Expand Up @@ -143,13 +147,13 @@ def generate(self):
tc.variables["GTSAM_BUILD_DOC_HTML"] = False
tc.variables["GTSAM_BUILD_EXAMPLES_ALWAYS"] = False
tc.variables["GTSAM_BUILD_WRAP"] = self.options.build_wrap
tc.variables["GTSAM_BUILD_WITH_MARCH_NATIVE"] = False
tc.variables["GTSAM_BUILD_WITH_MARCH_NATIVE"] = self.options.with_march_native
tc.variables["GTSAM_WRAP_SERIALIZATION"] = self.options.wrap_serialization
tc.variables["GTSAM_INSTALL_MATLAB_TOOLBOX"] = self.options.install_matlab_toolbox
tc.variables["GTSAM_INSTALL_CYTHON_TOOLBOX"] = self.options.install_cython_toolbox
tc.variables["GTSAM_INSTALL_CPPUNITLITE"] = self.options.install_cppunitlite
tc.variables["GTSAM_INSTALL_GEOGRAPHICLIB"] = False
tc.variables["GTSAM_USE_SYSTEM_EIGEN"] = True
tc.variables["GTSAM_USE_SYSTEM_EIGEN"] = self.options.use_system_eigen
tc.variables["GTSAM_BUILD_TYPE_POSTFIXES"] = False
tc.generate()
deps = CMakeDeps(self)
Expand Down