We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a14159 commit f934885Copy full SHA for f934885
1 file changed
cmake/vcpkg-setup.cmake
@@ -42,7 +42,16 @@ if (NOT DEFINED VCPKG_TARGET_TRIPLET)
42
endif ()
43
44
set (SIMH_VCPKG_PLATFORM "linux")
45
+ elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
46
+ set(SIMH_VCPKG_PLATFORM "osx")
47
+ if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
48
+ set(SIMH_VCPKG_ARCH "arm64")
49
+ else()
50
+ set(SIMH_VCPKG_ARCH "x64")
51
+ endif()
52
else ()
53
+ message(STATUS "CMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}")
54
+ message(STATUS "CMAKE_HOST_SYSTEM_PROCESSOR=${CMAKE_HOST_SYSTEM_PROCESSOR}")
55
message(FATAL_ERROR "Could not determine VCPKG platform and system triplet."
56
"\n"
57
"(a) Are you sure that VCPKG is usable on this system? Check VCPKG_ROOT and ensure that"
0 commit comments