Unify artifact installation
@@ -187,22 +187,22 @@ target_link_libraries(bro ${BROTLI_LIBRARIES})
# Installation
if(NOT BROTLI_BUNDLED_MODE)
- install (TARGETS bro RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
+ install(
+ TARGETS bro
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+ )
- if(WIN32)
install(
TARGETS ${BROTLI_LIBRARIES_CORE}
- LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}"
- ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}"
- )
- else()
- install(TARGETS ${BROTLI_LIBRARIES_CORE}
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
- install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
- endif()
+ install(
+ DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
+ )
endif()
# Tests
