microsoft/GraphEngine

build.ps1 on Windows 10: CMake Error: Unknown argument --host=x64

mwherman2000 opened this issue · 2 comments

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

I made a copy of build.ps1 and removed the 2 references to --host=x64

Unrelated, also make sure you:

  1. start PS with Run as Administrator
  2. have downloaded all of the prerequisites ...esp. the Windows 10 SDK.

@mwherman2000 I'm on Windows 10 Enterprise and have no issues with the build script when run in PowerShell.

  1. no problem with "--host=x64 flag
  2. Windows 10 SDK installed
    image

image

  1. PowerShell and dotnet --info

image

  1. Windows OS Information

image

  1. You must have the latest version of CMake installed.

image