Skip to content

Commit

Permalink
azure-storage-cpp: ensure cppstd flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 23, 2023
1 parent 672dd05 commit 9568949
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/azure-storage-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.build import check_min_cppstd
from conan.tools.build import check_min_cppstd, valid_min_cppstd
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import copy, get, replace_in_file
from conan.tools.microsoft import check_min_vs, is_msvc_static_runtime, is_msvc
Expand Down Expand Up @@ -104,7 +104,9 @@ def generate(self):
if not self.settings.compiler.cppstd:
tc.variables["CMAKE_CXX_STANDARD"] = self._minimum_cpp_standard
if is_apple_os(self):
tc.variables["GETTEXT_LIB_DIR"] = self.dependencies["libgettext"].cpp_info.libdirs[0]
tc.variables["GETTEXT_LIB_DIR"] = self.dependencies["libgettext"].cpp_info.libdir
if not valid_min_cppstd(self, self._minimum_cpp_standard):
tc.variables["CMAKE_CXX_STANDARD"] = self._minimum_cpp_standard
tc.generate()

deps = CMakeDeps(self)
Expand Down

0 comments on commit 9568949

Please sign in to comment.