Compare commits
5 Commits
fb870a5028
...
Developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 43fceadaac | |||
| 103610550a | |||
| 06700d29fb | |||
| 5dea03650d | |||
| 15d5da0401 |
@@ -93,6 +93,11 @@ class MimallocConan(ConanFile):
|
||||
raise ConanInvalidConfiguration(
|
||||
f"Currently, {self.ref} doesn't work properly with shared MD builds in CCI. Contributions welcomed")
|
||||
|
||||
if self.options.override and \
|
||||
self.options.asan:
|
||||
raise ConanInvalidConfiguration(
|
||||
"Asan requires Mimalloc to be compiled without override")
|
||||
|
||||
# Shared overriding requires dynamic runtime for MSVC:
|
||||
if self.options.override and \
|
||||
self.options.shared and \
|
||||
@@ -214,9 +219,13 @@ class MimallocConan(ConanFile):
|
||||
return os.path.join(self.package_folder, "lib", "cmake")
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.set_property("cmake_file_name", "mimalloc")
|
||||
self.cpp_info.set_property("cmake_target_name", "mimalloc" if self.options.shared else "mimalloc-static")
|
||||
|
||||
if(self.options.asan):
|
||||
self.cpp_info.set_property("cmake_file_name", "mimalloc-asan")
|
||||
self.cpp_info.set_property("cmake_target_name", "mimalloc-asan")
|
||||
else:
|
||||
self.cpp_info.set_property("cmake_file_name", "mimalloc")
|
||||
self.cpp_info.set_property("cmake_target_name", "mimalloc" if self.options.shared else "mimalloc-static")
|
||||
|
||||
if self.options.get_safe("inject"):
|
||||
self.cpp_info.includedirs = []
|
||||
self.cpp_info.libdirs = []
|
||||
|
||||
Reference in New Issue
Block a user