Skip to content

Commit

Permalink
fix for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Oct 6, 2023
1 parent 5a05f03 commit e5d53fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/sdl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ def generate(self):
tc.variables["SDL2_DISABLE_SDL2MAIN"] = not self.options.sdl2main

# Add extra information collected from the deps
all_deps = [dep for dep in reversed(self.dependencies.host.topological_sort.values())]
if not is_msvc(self):
all_deps = [dep for dep in reversed(self.dependencies.host.topological_sort.values())]
deps_includes = [p for dep in all_deps for p in dep.cpp_info.aggregated_components().includedirs]
tc.variables["CMAKE_REQUIRED_INCLUDES"] = ";".join(deps_includes)
extra_cflags = [f"-I{p}" for p in deps_includes]
Expand Down

0 comments on commit e5d53fd

Please sign in to comment.