66class RslUtilRecipe (ConanFile ):
77 name = "rsl-util"
88 version = "0.1"
9- package_type = "library"
9+ package_type = "header-library"
10+ no_copy_source = True
1011
1112 # Optional metadata
1213 license = "MIT"
1314 author = "Tsche che@pydong.org"
1415 description = "Reflective reimplementations of various standard library types and other utilities."
1516 topics = () # TODO
1617
17- # Binary configuration
18- settings = "os" , "compiler" , "build_type" , "arch"
18+ settings = "os" , "arch" , "compiler" , "build_type"
1919 options = {
20- "shared" : [True , False ], "fPIC" : [True , False ],
2120 "examples" : [True , False ], "tests" : [True , False ]
2221 }
23- default_options = {"shared" : False , "fPIC" : True ,
24- "examples" : False , "tests" : False }
22+ default_options = {"examples" : False , "tests" : False }
2523 generators = "CMakeToolchain" , "CMakeDeps"
2624
2725 exports_sources = "CMakeLists.txt" , "include/*" , "test/*" , "cmake/*"
28-
29- def config_options (self ):
30- if self .settings .os == "Windows" :
31- self .options .rm_safe ("fPIC" )
32-
33- def configure (self ):
34- if self .options .shared :
35- self .options .rm_safe ("fPIC" )
36-
3726 def requirements (self ):
3827 if self .options .tests :
3928 self .requires ("gtest/1.14.0" )
@@ -62,4 +51,4 @@ def package_info(self):
6251 util = self .cpp_info .components ["util" ]
6352 util .set_property ("cmake_target_name" , "rsl::util" )
6453 util .includedirs = ["include" ]
65- util .libs = ["rsl-util" ]
54+ util .libs = []
0 commit comments