build.ps1 on Windows 10: CMake Error: Unknown argument --host=x64
mwherman2000 opened this issue · 2 comments
mwherman2000 commented
PS C:\ge\GraphEngine> .\tools\build.ps1 -VS2019
GraphEngine repo root: C:\ge\GraphEngine
TRINITY_CMAKELISTS C:\ge\GraphEngine\CMakeLists.txt
TRINITY_OUTPUT_DIR: C:\ge\GraphEngine\bin
[x] Removing: C:\ge\GraphEngine\bin
[x] Removing: C:\ge\GraphEngine\build
Directory: C:\ge\GraphEngine
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2021-06-03 4:23 PM build
CMake Error: Unknown argument --host=x64
CMake Error: Run 'cmake --help' for all supported options.
Error: could not load cache
mwherman2000 commented
I made a copy of build.ps1 and removed the 2 references to --host=x64
Unrelated, also make sure you:
- start PS with Run as Administrator
- have downloaded all of the prerequisites ...esp. the Windows 10 SDK.
TaviTruman commented
@mwherman2000 I'm on Windows 10 Enterprise and have no issues with the build script when run in PowerShell.
- PowerShell and dotnet --info
- Windows OS Information
- You must have the latest version of CMake installed.