anchor.diff:  	set "gitmsys_path=%ProgramFiles%\Git\usr\bin"
   )
   
  -REM Choose compiler and Qt path depending on selected build type
  -if "%hopsan_arch%"=="x64" (
  -	set "mingw_path=%mingw_path64%"
  -	set "qmake_path=%qmake_path64%"
  -) else (
  -	set "mingw_path=%mingw_path32%"
  -	set "qmake_path=%qmake_path32%"
  +REM If the HOME directory of Qt is already specified, use that instead of default expected path
  +if not "%HOPSAN_BUILD_QT_HOME%" == "" (
  +	set "qmake_path=%HOPSAN_BUILD_QT_HOME%\bin"
  +)
  +REM If the HOME directory of MinGW is already specified, use that instead of default expected path
  +if not "%HOPSAN_BUILD_MINGW_HOME%" == "" (
  +	set "mingw_path=%HOPSAN_BUILD_MINGW_HOME%\bin"
   )
   
   REM Echo expected paths
  
positive.code: 	set hopsan_arch=%~1
  )
  if not "%~2"=="" (
  REM Do something maybe	
  )
  
  echo Setting paths for architecture: %hopsan_arch%
  
negative.code: 		set "gitmsys_path=%ProgramW6432%\Git\usr\bin"
  	)
  ) else (
      REM Lookup tools paths  for 32-bit Windows
  	echo 32bit Windows detected, expecting 32-bit tools
  	set "cmake_path=%ProgramFiles%\CMake\bin"
  	set "doxygen_path=%ProgramFiles%\doxygen\bin"
  