forked from mpusz/mp-units
refactor: UNITS_UDLS renamed to UNITS_LITERALS
Also now the existence of the preprocessor flag is enough to trigger the feature (`#ifdef` instead of `#if`)
This commit is contained in:
@@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 3.2)
|
||||
function(add_example target)
|
||||
add_executable(${target}_alt ${target}.cpp)
|
||||
target_link_libraries(${target}_alt PRIVATE mp-units::mp-units)
|
||||
target_compile_definitions(${target}_alt PRIVATE UNITS_UDLS=1)
|
||||
target_compile_definitions(${target}_alt PRIVATE UNITS_LITERALS)
|
||||
endfunction()
|
||||
|
||||
add_example(box_example mp-units::si)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#define UNITS_UDLS 1
|
||||
#define UNITS_LITERALS
|
||||
|
||||
#include <units/format.h>
|
||||
#include <units/isq/si/international/length.h>
|
||||
|
||||
Reference in New Issue
Block a user