mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
refactor: the default dowcasting mode changed from AUTO to ON
This commit is contained in:
@@ -52,7 +52,7 @@ class UnitsConan(ConanFile):
|
|||||||
"downcast": ["off", "on", "auto"]
|
"downcast": ["off", "on", "auto"]
|
||||||
}
|
}
|
||||||
default_options = {
|
default_options = {
|
||||||
"downcast": "auto"
|
"downcast": "on"
|
||||||
}
|
}
|
||||||
exports = ["LICENSE.md"]
|
exports = ["LICENSE.md"]
|
||||||
exports_sources = ["docs/*", "src/*", "test/*", "cmake/*", "example/*","CMakeLists.txt"]
|
exports_sources = ["docs/*", "src/*", "test/*", "cmake/*", "example/*","CMakeLists.txt"]
|
||||||
|
@@ -27,7 +27,7 @@ project(mp-units
|
|||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
set(DOWNCAST_MODE AUTO CACHE STRING "Select downcasting mode")
|
set(DOWNCAST_MODE ON CACHE STRING "Select downcasting mode")
|
||||||
set_property(CACHE DOWNCAST_MODE PROPERTY STRINGS AUTO ON OFF)
|
set_property(CACHE DOWNCAST_MODE PROPERTY STRINGS AUTO ON OFF)
|
||||||
|
|
||||||
# set path to custom cmake modules
|
# set path to custom cmake modules
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
#error "Invalid DOWNCAST_MODE value"
|
#error "Invalid DOWNCAST_MODE value"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define DOWNCAST_MODE 2
|
#define DOWNCAST_MODE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace units {
|
namespace units {
|
||||||
|
Reference in New Issue
Block a user