# HG changeset patch # User Sebastien Jodogne # Date 1719078007 -7200 # Node ID 4a8bedae63b1d5cfee57628bf79aa5f9f8139e45 # Parent a8ab611d82a38490c1e88f0e27ca491291882f32 trying to force windows version above 7 diff -r a8ab611d82a3 -r 4a8bedae63b1 Aws/AwsStaticConfiguration.cmake --- a/Aws/AwsStaticConfiguration.cmake Sat Jun 22 18:06:30 2024 +0200 +++ b/Aws/AwsStaticConfiguration.cmake Sat Jun 22 19:40:07 2024 +0200 @@ -244,7 +244,8 @@ add_definitions( -DAWS_USE_IO_COMPLETION_PORTS=1 - -DCJSON_AS4CPP_HIDE_SYMBOLS=1 # Disable "dllexport" in cJSON + # -DCJSON_AS4CPP_HIDE_SYMBOLS=1 # Disable "dllexport" in cJSON => doesn't seem to work + -DCJSON_HIDE_SYMBOLS=1 ) set(AWSSDK_LINK_LIBRARIES @@ -254,6 +255,11 @@ userenv version ) + + # Target Windows 7, as "PPROCESSOR_NUMBER" is needed by AWS + remove_definitions(-DWINVER=0x0501 -D_WIN32_WINNT=0x0501) + add_definitions(-DWINVER=0x0601 -D_WIN32_WINNT=0x0601) + else() list(APPEND AWS_SOURCES_SUBDIRS #${AWS_C_CAL_SOURCES_DIR}/source/unix/