dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / io / iodash / 0001-Add-cmake-install-directives.patch
blob1868a741920877f499775e5e7ec20b88b51f784f
1 From 89c7c160f897f64e17fb74efffccfd1fc16f8b7d Mon Sep 17 00:00:00 2001
2 From: Jappie Klooster <jappieklooster@hotmail.com>
3 Date: Fri, 2 Apr 2021 14:22:02 -0400
4 Subject: [PATCH] Add cmake install directives.
6 To make nix builds work, it expect a `make install` command to
7 be available.
8 Adding these directives seems to fix the build.
10 If it's no trouble to you, please add them.
12 Maybe don't need endian
13 ---
14 CMakeLists.txt | 10 ++++++++++
15 1 file changed, 10 insertions(+)
17 diff --git a/CMakeLists.txt b/CMakeLists.txt
18 index 06e416f..8d6f489 100644
19 --- a/CMakeLists.txt
20 +++ b/CMakeLists.txt
21 @@ -6,6 +6,8 @@ set(CMAKE_CXX_STANDARD 17)
22 add_library(IODash INTERFACE)
23 target_include_directories(IODash INTERFACE .)
25 +include(GNUInstallDirs)
27 add_executable(IODash_Test test.cpp)
28 target_link_libraries(IODash_Test IODash)
30 @@ -20,3 +22,11 @@ if (DEFINED BUILD_BENCHMARKS AND (${BUILD_BENCHMARKS}))
31 target_link_libraries(boost_Benchmark_HTTP boost_system pthread)
32 endif()
34 +install(TARGETS IODash
35 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
36 +install(FILES IODash.hpp
37 + DESTINATION include/)
39 +install(FILES
40 + IODash/Buffer.hpp IODash/SocketAddress.hpp IODash/File.hpp IODash/Socket.hpp IODash/EventLoop.hpp IODash/Serial.hpp IODash/Timer.hpp
41 + DESTINATION include/IODash)
42 --
43 2.29.2