winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

fix-uwp.patch (975B)


      1 diff --git a/Release/CMakeLists.txt b/Release/CMakeLists.txt
      2 index b8f3809..3857cfc 100644
      3 --- a/Release/CMakeLists.txt
      4 +++ b/Release/CMakeLists.txt
      5 @@ -187,7 +187,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
      6    set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /profile /OPT:REF /OPT:ICF")
      7  
      8    if (WINDOWS_STORE OR WINDOWS_PHONE)
      9 -    add_compile_options(/ZW)
     10 +    # add_compile_options(/ZW)
     11    else()
     12      if (NOT (MSVC_VERSION LESS 1920))
     13        add_compile_options(/permissive-)
     14 diff --git a/Release/src/CMakeLists.txt b/Release/src/CMakeLists.txt
     15 index 128f6d6..098d33f 100644
     16 --- a/Release/src/CMakeLists.txt
     17 +++ b/Release/src/CMakeLists.txt
     18 @@ -47,6 +47,10 @@ target_include_directories(cpprest
     19      pch
     20  )
     21  
     22 +if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" AND (WINDOWS_STORE OR WINDOWS_PHONE))
     23 +    target_compile_options(cpprest PUBLIC /ZW)
     24 +endif()
     25 +
     26  ## Sub-components
     27  # Websockets component
     28  if(CPPREST_WEBSOCKETS_IMPL STREQUAL "none")