Skip to content

Commit 58160bb

Browse files
authored
Merge 71e1962 into bbe5d72
2 parents bbe5d72 + 71e1962 commit 58160bb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,20 @@ add_executable(brotli ${BROTLI_CLI_C})
219219
target_link_libraries(brotli ${BROTLI_LIBRARIES_STATIC})
220220

221221
# Installation
222-
if(NOT BROTLI_EMSCRIPTEN)
223222
if(NOT BROTLI_BUNDLED_MODE)
224223
install(
225224
TARGETS brotli
226225
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
227226
)
228227

229-
install(
230-
TARGETS ${BROTLI_LIBRARIES_CORE}
231-
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
232-
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
233-
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
234-
)
228+
if(NOT BROTLI_EMSCRIPTEN)
229+
install(
230+
TARGETS ${BROTLI_LIBRARIES_CORE}
231+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
232+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
233+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
234+
)
235+
endif() # BROTLI_EMSCRIPTEN
235236

236237
install(
237238
TARGETS ${BROTLI_LIBRARIES_CORE_STATIC}
@@ -245,7 +246,6 @@ if(NOT BROTLI_BUNDLED_MODE)
245246
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
246247
)
247248
endif() # BROTLI_BUNDLED_MODE
248-
endif() # BROTLI_EMSCRIPTEN
249249

250250
# Tests
251251

0 commit comments

Comments
 (0)