Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ can't find Windows SDK version. Try to use vcvarsall.bat script")
endif()
endif()

set(PROGRAMFILES_ENV "ProgramFiles\(X86\)")
set(PROGRAMFILES_ENV "ProgramFiles\(X86\)" PARENT_SCOPE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not used outside of this function, do we need to move to parent scope ?

What issue do you experience?

Copy link
Contributor Author

@DanLiu2Intel DanLiu2Intel Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, when build locally, can not find the UniversalDDIs.xml

[2024-06-26T21:58:25.848Z] CMake Error at cmake/developer_package/api_validator/api_validator.cmake:124 (message):
[2024-06-26T21:58:25.848Z]   Internal error: apiValidator is found (C:/Program Files (x86)/Windows
[2024-06-26T21:58:25.848Z]   Kits/10/bin/10.0.22621.0/x64/apivalidator.exe), but UniversalDDIs.xml file
[2024-06-26T21:58:25.848Z]   has not been found for x64 platform

by test locally, find the path is '/Windows Kits/10/build/10.0.19041.0/universalDDIs/x64/UniversalDDIs.xml'
${PROGRAMFILES_ENV} in here is used to search UniversalDDIs.xml.

    find_file(ONECORE_API_VALIDATOR_APIS NAMES UniversalDDIs.xml
              PATHS "${PROGRAMFILES}/Windows Kits/10/build/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/universalDDIs/${wdk_platform}"
                    "${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/${wdk_platform}"
              DOC "Path to UniversalDDIs.xml file")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI #25252


# check that PROGRAMFILES_ENV is defined, because in case of cross-compilation for Windows
# we don't have such variable
Expand Down