Replies: 2 comments 6 replies
-
Either |
Beta Was this translation helpful? Give feedback.
-
Thanks @Osyotr ! I solved my problem with the following: Custom triplet file at # From x64-windows.cmake
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
# Define macros for Windows 7.
if (PORT MATCHES "tbb")
set(VCPKG_CXX_FLAGS "/DWINVER=0x0601 /D_WIN32_WINNT=0x0601")
set(VCPKG_C_FLAGS "/DWINVER=0x0601 /D_WIN32_WINNT=0x0601")
endif()
{
...
"vcpkg-configuration": {
"overlay-triplets": ["./triplets"]
}
} I had to use the |
Beta Was this translation helpful? Give feedback.
-
I need a macro to be defined for one of the dependencies I'm building with VCPKG. Preferrably I can configure this in my project's
vcpkg.json
file so builds are reproducible.Specifically, I want to define
where
0x0601
is Windows 7. I need this defined so Intel TBB doesn't use a new Windows system call introduced in Windows 8.https://github.com/oneapi-src/oneTBB/blob/d238e987a53f43f84b41d0c14dbc0089c45e5e65/src/tbb/global_control.cpp#L92-L101
I have to maintain software for a super legacy system running Win 7 and the only thing preventing my builds from work on Windows 7 is this macro.
Beta Was this translation helpful? Give feedback.
All reactions