cmake_static_crt.patch 855 B

123456789101112131415161718192021222324252627
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index f48391edf..66f7b726d 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -155,22 +155,6 @@ IF (WIN32)
  6. # "VCRUNTIME140.dll not found. Try reinstalling the app.", but give users
  7. # a choice to opt for the shared runtime if they want.
  8. option(USE_STATIC_CRT "Link against the static runtime libraries." OFF)
  9. -
  10. - # The CMAKE_CXX_FLAGS vars can be overriden by some Visual Studio generators, so we use an alternative
  11. - # global method here:
  12. - if (${USE_STATIC_CRT})
  13. - add_compile_options(
  14. - $<$<CONFIG:>:/MT>
  15. - $<$<CONFIG:Debug>:/MTd>
  16. - $<$<CONFIG:Release>:/MT>
  17. - )
  18. - else()
  19. - add_compile_options(
  20. - $<$<CONFIG:>:/MD>
  21. - $<$<CONFIG:Debug>:/MDd>
  22. - $<$<CONFIG:Release>:/MD>
  23. - )
  24. - endif()
  25. ENDIF()
  26. ENDIF()