conan icon indicating copy to clipboard operation
conan copied to clipboard

[question] What are the default values and settings for conan v2 and find_pakage on windows?

Open mtunjic opened this issue 9 months ago • 5 comments

What is your question?

Hi, I'm currently using conan 2.3.0 with cmake 3.28 on windows 11 and problem is: in older conan version before 2.x find_package from CMakeLists.txt worked without problems if I didn't set anything in package_info: (conan.py). Now now I get messages that the library does not exist.

        Broken: 
        Default settings without  def package_info(self):  
	
        Works:
	self.cpp_info.set_property("cmake_file_name", "mylib")
        self.cpp_info.set_property("cmake_target_name", f"mylib::{mylib}")
        self.cpp_info.set_property("pkg_config_name",  "mylib")

	Works:
        self.cpp_info.system_libs = ["mylib"]

	Broken:
	self.cpp_info.libs = ["mylib"]

What is needed now and what is the minimum configuration for find_pakcage to work properly? I apologize if it is documented somewhere, I did not find it.

Thanks, Marko

Have you read the CONTRIBUTING guide?

  • [ ] I've read the CONTRIBUTING guide

mtunjic avatar May 16 '24 08:05 mtunjic