mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
Revert "build: package_type
is dynamically set in conanfile.py depending if we build modules or not"
This reverts commit bbdb750362
.
This commit is contained in:
@@ -82,6 +82,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
"example/*",
|
"example/*",
|
||||||
"CMakeLists.txt",
|
"CMakeLists.txt",
|
||||||
)
|
)
|
||||||
|
package_type = "header-library"
|
||||||
no_copy_source = True
|
no_copy_source = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -203,10 +204,6 @@ class MPUnitsConan(ConanFile):
|
|||||||
self._set_default_option(key)
|
self._set_default_option(key)
|
||||||
|
|
||||||
def configure(self):
|
def configure(self):
|
||||||
if self.options.cxx_modules:
|
|
||||||
self.package_type = "static-library"
|
|
||||||
else:
|
|
||||||
self.package_type = "header-library"
|
|
||||||
if self.options.freestanding:
|
if self.options.freestanding:
|
||||||
self.options.rm_safe("std_format")
|
self.options.rm_safe("std_format")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user