Skip to content

Commit

Permalink
(conan-io#21714) [fix][ceres-solver] Added IOS_DEPLOYMENT_TARGET vari…
Browse files Browse the repository at this point in the history
…able

Co-authored-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
2 people authored and valgur committed Jan 1, 2024
1 parent 6ae54c2 commit dd8ec0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/ceres-solver/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import os
import textwrap

from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
Expand All @@ -6,8 +9,6 @@
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir, save
from conan.tools.microsoft import is_msvc, is_msvc_static_runtime
from conan.tools.scm import Version
import os
import textwrap

required_conan_version = ">=1.54.0"

Expand Down Expand Up @@ -160,6 +161,9 @@ def generate(self):
tc.variables["OPENMP"] = False
tc.variables["TBB"] = self.options.use_TBB
tc.variables["CXX11_THREADS"] = self.options.use_CXX11_threads
# IOS_DEPLOYMENT_TARGET variable was added to iOS.cmake file in 1.12.0 version
if self.settings.os == "iOS":
tc.variables["IOS_DEPLOYMENT_TARGET"] = self.settings.os.version
tc.generate()

CMakeDeps(self).generate()
Expand Down

0 comments on commit dd8ec0b

Please sign in to comment.