Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg-tool] CMake dep info run has TARGET_TRIPLET not defined. #42204

Open
Neumann-A opened this issue Nov 17, 2024 · 0 comments
Open

[vcpkg-tool] CMake dep info run has TARGET_TRIPLET not defined. #42204

Neumann-A opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
category:question This issue is a question

Comments

@Neumann-A
Copy link
Contributor

Computing installation plan...
command:
"E:\vcpkg_cache\downloads\tools\cmake-3.30.1-windows\cmake-3.30.1-windows-i386/bin/cmake.exe" -DVCPKG_ROOT_DIR=D:/vcpkg_folders/no_msvc -DPACKAGES_DIR=D:/vcpkg_folders/no_msvc/packages -DBUILDTREES_DIR=D:/vcpkg_folders/no_msvc/buildtrees -D_VCPKG_INSTALLED_DIR=D:/vcpkg_folders/no_msvc/installed -DDOWNLOADS=E:/vcpkg_cache/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "D:\vcpkg_folders\no_msvc\buildtrees\0.vcpkg_dep_info.cmake"
failed with the following output:
d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af, Loading Intel environment ...., CMake Error at triplets/x64-win-msvc/port-customization/lapack-reference.cmake:4 (include):,   include could not find requested file:, ,     D:/vcpkg_folders/no_msvc/installed//share/intel-hpc/intel-msvc-env.cmake, Call Stack (most recent call first):,   triplets/x64-win-msvc.cmake:29 (include),   buildtrees/0.vcpkg_dep_info.cmake:8 (include),   buildtrees/0.vcpkg_dep_info.cmake:19 (vcpkg_triplet_file),   buildtrees/0.vcpkg_dep_info.cmake:37 (vcpkg_get_dep_info), ,

Is missing TARGET_TRIPLET which is why the paths are all jumbled up. I currently work around that by using:

set(DEP_INFO_RUN OFF)
if(NOT (DEFINED CURRENT_PORT_DIR AND
   DEFINED CURRENT_PACKAGES_DIR AND
   DEFINED CURRENT_BUILDTREES_DIR AND
   DEFINED TARGET_TRIPLET AND
   DEFINED TARGET_TRIPLET_FILE AND
   DEFINED VCPKG_BASE_VERSION AND
   DEFINED VCPKG_MANIFEST_INSTALL AND
   DEFINED CMD))
  set(DEP_INFO_RUN ON)
endif()

and detecting if i can use TARGET_TRIPLET or not. I could infer the TARGET_TRIPLET as the filename of CMAKE_CURRENT_LIST_FILE but I don't know if vcpkg expands that variable. It would be easier to just pass TARGET_TRIPLET in the context correctly (or add it to the extraction).

@MonicaLiu0311 MonicaLiu0311 added the category:question This issue is a question label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants