0027514: Configuration, CMake - relative paths are not correctly handled for INSTALL_DIR
[occt.git] / adm / templates / env.samples.bat.in
1 @echo off
2
3 if exist "%~dp0custom.bat" (
4   call "%~dp0custom.bat" %1 %2 %3
5 )
6
7 call "@INSTALL_DIR_ABSOLUTE@\@INSTALL_DIR_SCRIPT@\env.bat" %1 %2 %3
8
9 set "BIN_DIR=win%ARCH%\%VCVER%\bind"
10 set "LIB_DIR=win%ARCH%\%VCVER%\libd"
11
12 if ["%CASDEB%"] == [""] (
13   set "BIN_DIR=win%ARCH%\%VCVER%\bin"
14   set "LIB_DIR=win%ARCH%\%VCVER%\lib"
15 )
16
17 set "PATH=%~dp0%BIN_DIR%;%PATH%"
18
19 if not "%QTDIR%" == "" (
20   set "RES_DIR=%~dp0win%ARCH%\%VCVER%\res"
21
22   set "CSF_ResourcesDefaults=!RES_DIR!"
23   set "CSF_TutorialResourcesDefaults=!RES_DIR!"
24   set "CSF_IEResourcesDefaults=!RES_DIR!"
25
26   set "PATH=%QTDIR%/bin;%PATH%"
27   set "QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins\platforms"
28 )