jimmy-park / openssl-cmake

Build OpenSSL in parallel within CMake
MIT License
32 stars 10 forks source link

MSVC build failure #23

Open iGwkang opened 2 days ago

iGwkang commented 2 days ago
 "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64 && "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/nmake.exe" /NOLOGO /S build_libs"
[build] **********************************************************************
[build] ** Visual Studio 2022 Developer Command Prompt v17.10.5
[build] ** Copyright (c) 2022 Microsoft Corporation
[build] **********************************************************************
[build] [vcvarsall.bat] Environment initialized for: 'x64'
[build] NMAKE : fatal error U1073: 不知道如何生成“"..\..\..\.cache\CPM\openssl-source\6ea3ef51de42a6e1e687c62177b17c1458a425ee\apps\apps.c"”
[build] Stop.
[build] NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LS                 depend && "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\nmake.exe" /LS                 _build_libs”: 返回代码“0x2”
[build] Stop.
[build] ninja: build stopped: subcommand failed.
  if (WIN32)
      set(openssl_target_platform "VC-WIN64A")
  else()
      set(openssl_target_platform "linux-aarch64")
  endif()

  CPMAddPackage(
      NAME openssl-cmake
      GIT_TAG 3.4.0
      GITHUB_REPOSITORY jimmy-park/openssl-cmake
      OPTIONS
          "OPENSSL_TARGET_VERSION 1.1.1w" "OPENSSL_TARGET_PLATFORM ${openssl_target_platform}"
          "OPENSSL_CONFIGURE_OPTIONS no-shared;no-tests"
      )
iGwkang commented 20 hours ago

@jimmy-park Is there anything I can do for you? I hope to resolve this issue as soon as possible. Thank you!

jimmy-park commented 20 hours ago

I could reproduce this bug. I will find some solution this weekend.