cmake.patch 790 B

123456789101112131415161718192021222324252627282930
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 413b4579..f9f1371d 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -42,14 +42,14 @@ else()
  6. set(LSQPACK_DEPENDS "libxxhash")
  7. endif()
  8. -if(WIN32)
  9. +if(MSVC OR MINGW OR EMSCRIPTEN)
  10. target_include_directories(ls-qpack PUBLIC
  11. $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/wincompat>
  12. $<INSTALL_INTERFACE:include>
  13. )
  14. endif()
  15. -if(WIN32)
  16. +if(MSVC)
  17. target_compile_options(ls-qpack PRIVATE
  18. /Wall
  19. /wd4100 # unreffed parameter
  20. @@ -144,7 +144,7 @@ if(LSQPACK_BIN)
  21. DESTINATION ${CMAKE_INSTALL_BINDIR})
  22. endif()
  23. -if(WIN32)
  24. +if(MSVC OR MINGW OR EMSCRIPTEN)
  25. install(DIRECTORY wincompat/sys DESTINATION include)
  26. else()
  27. install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lsqpack.pc"