diff --git a/recipes/sail/all/conanfile.py b/recipes/sail/all/conanfile.py index 13e75918fc7c2..0724b6a52b3c6 100644 --- a/recipes/sail/all/conanfile.py +++ b/recipes/sail/all/conanfile.py @@ -42,6 +42,10 @@ class SAILConan(ConanFile): "with_low_priority_codecs": "Enable codecs: ICO, PCX, PNM, PSD, QOI, TGA", "with_lowest_priority_codecs": "Enable codecs: WAL, XBM", } + + @property + def _is_clang_cl(self): + return self.settings.os == "Windows" and self.settings.compiler == "clang" def export_sources(self): export_conandata_patches(self) @@ -109,7 +113,7 @@ def generate(self): tc.variables["SAIL_INSTALL_PDB"] = False tc.variables["SAIL_THREAD_SAFE"] = self.options.thread_safe # TODO: Remove after fixing https://github.com/conan-io/conan/issues/12012 - if is_msvc(self): + if is_msvc(self) or self._is_clang_cl: tc.cache_variables["CMAKE_TRY_COMPILE_CONFIGURATION"] = str(self.settings.build_type) tc.generate() diff --git a/recipes/sail/d b/recipes/sail/d new file mode 100644 index 0000000000000..fe24ea3373243 Binary files /dev/null and b/recipes/sail/d differ