Skip to content

Commit

Permalink
ofeli: disable MSVC on 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 6, 2023
1 parent ebe9955 commit c066157
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/ofeli/5.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ def layout(self):
def validate(self):
if self.settings.compiler.cppstd:
check_min_cppstd(self, 11)
if self.settings.compiler in ["clang", "apple-clang"]:
if self.settings.compiler in ["clang", "apple-clang", "msvc"]:
# Clang fails with
# include/linear_algebra/LocalVect_impl.h:251:42: error: cannot initialize return object of type 'OFELI::Element *' with an lvalue of type 'const OFELI::Element *'
raise ConanInvalidConfiguration(f"{self.settings.compiler} is not supported due to compilation errors in a public header")
# MSVC fails with a lot of errors
# https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/18952/12-windows-visual_studio/ofeli/5.1.0/summary.json
raise ConanInvalidConfiguration(f"{self.settings.compiler} is not supported due to compilation errors")

def build_requirements(self):
self.tool_requires("cmake/[>=3.16 <4]")
Expand Down

0 comments on commit c066157

Please sign in to comment.