Skip to content

Commit 5872e5e

Browse files
committed
Fix Irrlicht build bug
Enable Irrlicht GUI automatically when IrrlichtDir is set in build.ps1
1 parent a1c22f7 commit 5872e5e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ function Get-BuildArguments {
603603
$irrlicht = ($Config.IrrlichtDir -replace '\\','/')
604604
$irrlichtDllWin = Join-Path $Config.IrrlichtDir "bin\Win64-VisualStudio\Irrlicht.dll"
605605
$irrlichtDll = ($irrlichtDllWin -replace '\\','/')
606+
$irrlichtFlag = if ($Config.IrrlichtDir -and (Test-Path $Config.IrrlichtDir)) { "ON" } else { "OFF" }
606607

607608
# Deterministic prefix path so our roots win over ambient environment
608609
$prefixParts = @()
@@ -623,6 +624,7 @@ function Get-BuildArguments {
623624
"-DEIGEN3_INCLUDE_DIR=`"$eigenDir`"",
624625
"-DIrrlicht_ROOT=`"$irrlicht`"",
625626
"-DIRRLICHT_DLL_PATH=`"$irrlichtDll`"",
627+
"-DHYDROCHRONO_ENABLE_IRRLICHT=`"$irrlichtFlag`"",
626628
"-DCMAKE_PREFIX_PATH=`"$prefixPath`"",
627629
"-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON",
628630
"-DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF",

0 commit comments

Comments
 (0)