فهرست منبع

Allow Debug type for ls-std 2024.1.0.1

Patrick-Christopher Mattulat 2 ماه پیش
والد
کامیت
de46cd22a9
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      recipes/ls-std/2024-1-0-1/conanfile.py

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

@@ -50,7 +50,10 @@ 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-time"]
+        if self.settings.build_type == "Release":
+            self.cpp_info.libs = ["ls-std-boxing", "ls-std-core", "ls-std-encoding", "ls-std-event", "ls-std-io", "ls-std-time"]
+        if self.settings.build_type == "Debug":
+            self.cpp_info.libs = ["ls-std-boxing-d", "ls-std-core-d", "ls-std-encoding-d", "ls-std-event-d", "ls-std-io-d", "ls-std-time-d"]
         
         self.cpp_info.set_property("cmake_file_name", "ls-std")
         self.cpp_info.set_property("cmake_target_name", "ls-std")