Skip to content

Commit d7bbd9b

Browse files
committed
Fix PPROCESSOR_NUMBER issue
1 parent c1ecba6 commit d7bbd9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ if (XCODE)
115115
set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME OFF)
116116
endif()
117117

118+
if (WIN32)
119+
# Ensure Windows SDK exposes newer APIs like PPROCESSOR_NUMBER
120+
# https://github.com/aws/aws-iot-device-sdk-cpp-v2/issues/427
121+
add_compile_definitions(_WIN32_WINNT=0x0601)
122+
endif()
123+
118124
# Create a single static library that combines all the individual libs
119125
# We do this to work around issues with link order when including multiple
120126
# `staticLibraries` in the cinterop file.

0 commit comments

Comments
 (0)