From 51224f2fa79a6ca02ddd0854857ae8016375439c Mon Sep 17 00:00:00 2001 From: "Vinzent \"Jellix\" Saranen" Date: Wed, 14 Oct 2020 10:26:27 +0200 Subject: [PATCH] Renamed build scenario variable to SI_UNITS_BUILD to prevent likely name clashes. --- alire.toml | 7 ++----- si_units_common.gpr | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/alire.toml b/alire.toml index d13160e..60c9c13 100644 --- a/alire.toml +++ b/alire.toml @@ -1,6 +1,6 @@ description = "Pretty print physical values in properly scaled metric (SI) units." name = "si_units" -version = "0.1.2" +version = "0.1.3" authors = ["Vinzent \"Jellix\" Saranen"] website = "https://github.heisenbug.eu/si_units" licenses = ["WTFPL"] @@ -10,7 +10,4 @@ project-files = ["si_units_lib.gpr"] tags = ["utilities", "formatting"] [gpr-externals] -BUILD = ["debug", "release"] - -[gpr-set-externals] -BUILD = "release" +SI_UNITS_BUILD = ["debug", "release"] diff --git a/si_units_common.gpr b/si_units_common.gpr index 867b0e3..ba3eec0 100644 --- a/si_units_common.gpr +++ b/si_units_common.gpr @@ -6,7 +6,7 @@ abstract project SI_Units_Common is type Build_Type is ("debug", "release"); - Build : Build_Type := external ("build", "release"); + Build : Build_Type := external ("SI_UNITS_BUILD", "release"); Compiler_Switches := ("-gnat12", "-gnatw.e.Y", "-gnatyAM80OSabcdefhiklnoprstu", "-gnata", "-gnato", "-fstack-check");