Skip to content

Commit

Permalink
openmp: cmake_file_name=none breaks Conan when used transitively
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jul 18, 2024
1 parent 50c2c88 commit b18c50d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/openmp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def _openmp_flags(self):
return None

def package_info(self):
self.cpp_info.set_property("cmake_find_mode", "none")
# Can't use cmake_find_mode=none because Conan tries to find_package() it internally,
# when used transitively.
self.cpp_info.set_property("cmake_file_name", "_openmp_")

self.cpp_info.frameworkdirs = []
self.cpp_info.libdirs = []
Expand Down

0 comments on commit b18c50d

Please sign in to comment.