Skip to content

Commit

Permalink
raise for the specific configuration which cannot be built in c3i due…
Browse files Browse the repository at this point in the history
… to mising pre-built binary of onetbb shared with static runtime
  • Loading branch information
SpaceIm committed Jan 22, 2023
1 parent 7cb3f3e commit c8f1ab5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/cctag/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, rmdir
from conan.tools.microsoft import is_msvc_static_runtime
import os

required_conan_version = ">=1.53.0"
Expand Down Expand Up @@ -73,6 +74,10 @@ def validate(self):
f"{', '.join(self._required_boost_components)}",
)

if self.settings.compiler == "Visual Studio" and not self.options.shared and \
is_msvc_static_runtime(self) and self.dependencies["onetbb"].options.shared:
raise ConanInvalidConfiguration("this specific configuration is prevented due to internal c3i limitations")

if self.settings.compiler.get_safe("cppstd"):
check_min_cppstd(self, 14)

Expand Down

0 comments on commit c8f1ab5

Please sign in to comment.