diff --git a/src/includes/CMakeLists.txt b/src/includes/CMakeLists.txt index b4720c65..3d77d6ce 100644 --- a/src/includes/CMakeLists.txt +++ b/src/includes/CMakeLists.txt @@ -1,5 +1,7 @@ -install(FILES - nghttp2/asio_http2.h - nghttp2/asio_http2_client.h - nghttp2/asio_http2_server.h - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/nghttp2") +if(ENABLE_ASIO_LIB) + install(FILES + nghttp2/asio_http2.h + nghttp2/asio_http2_client.h + nghttp2/asio_http2_server.h + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/nghttp2") +endif()