Update recipes/tip/bld.bat
@@ -3,9 +3,6 @@ setlocal EnableDelayedExpansion
mkdir build
cd build
-:: Hardcoded USER_VERSION is bad. Can't get previously un-defined
-:: env var that is defined in build.script_env to pass through.
-:: How to do this?
:: USER_VERSION is used to hardcode version in built executables.
:: It is typically unnecessary because CMake configure-time uses
:: git ops to discover tag or commit SHA, both of which are not
@@ -14,7 +11,7 @@ cmake .. -GNinja -DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCONDA_PREFIX:PATH="%CONDA_PREFIX%" ^
- -DUSER_VERSION:STRING=v1.0.2
+ -DUSER_VERSION:STRING="v%PKG_VERSION%"
if errorlevel 1 exit /b 1
