Browse Source

Fix ls-std component creation for ls-std 2024.1.0.1

Patrick-Christopher Mattulat 3 months ago
parent
commit
65d7de32c2
1 changed files with 10 additions and 1 deletions
  1. 10 1
      recipes/ls-std/2024-1-0-1/conanfile.py

+ 10 - 1
recipes/ls-std/2024-1-0-1/conanfile.py

@@ -46,10 +46,19 @@ class LsStdConan(ConanFile):
                 shutil.copy(os.path.join(build_lib_src, file), lib_dst)
 
     def package_info(self):
-        self.cpp_info.libs = ["ls-std-boxing", "ls-std-core", "ls-std-encoding", "ls-std-event", "ls-std-io", "ls-std-logic", "ls-std-time"]
+        self.cpp_info.libs = ["ls-std-boxing", "ls-std-core", "ls-std-encoding", "ls-std-event", "ls-std-io", "ls-std-time"]
+        
+        self.cpp_info.set_property("cmake_file_name", "ls-std")
+        self.cpp_info.set_property("cmake_target_name", "ls-std")
+
+        for lib in self.cpp_info.libs:
+            component = self.cpp_info.components[lib]
+            component.libs = [lib]
+            component.set_property("cmake_target_name", f"ls-std::{lib}")
 
     def generate(self):
         tool_chain = CMakeToolchain(self)
+        tool_chain.variables["CMAKE_BUILD_TYPE"] = "Release"
 
         if self.options.shared:
             tool_chain.variables['LS_STD_BUILD_STATIC'] = "OFF"