Skip to content

Commit 273195e

Browse files
authored
FIx mingw and emscripten (#72)
* CMake: Fix mingw * Fix emscripten Use wincompat's sys/queue.
1 parent ec05488 commit 273195e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ else()
4343
set(LSQPACK_DEPENDS "libxxhash")
4444
endif()
4545

46-
if(WIN32)
46+
if(WIN32 OR EMSCRIPTEN)
4747
target_include_directories(ls-qpack PUBLIC
4848
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/wincompat>
4949
$<INSTALL_INTERFACE:include>
5050
)
5151
endif()
5252

53-
if(WIN32)
53+
if(MSVC)
5454
target_compile_options(ls-qpack PRIVATE
5555
/Wall
5656
/wd4100 # unreffed parameter
@@ -147,6 +147,6 @@ if(LSQPACK_BIN)
147147
DESTINATION ${CMAKE_INSTALL_BINDIR})
148148
endif()
149149

150-
if(WIN32)
150+
if(WIN32 OR EMSCRIPTEN)
151151
install(DIRECTORY wincompat/sys DESTINATION include)
152152
endif()

0 commit comments

Comments
 (0)