| 1 | Patch-Source: https://github.com/hoene/libmysofa/commit/1b7d3bb0c5d13a6d2db0b439231ce65f4ad4cca0.patch
|
| 2 | --
|
| 3 | From 1b7d3bb0c5d13a6d2db0b439231ce65f4ad4cca0 Mon Sep 17 00:00:00 2001
|
| 4 | From: "Jason E. Hale" <[email protected]>
|
| 5 | Date: Tue, 17 Oct 2023 15:10:23 -0400
|
| 6 | Subject: [PATCH] Install header when only building shared library
|
| 7 |
|
| 8 | Fixes #210
|
| 9 | ---
|
| 10 | src/CMakeLists.txt | 2 ++
|
| 11 | 1 file changed, 2 insertions(+)
|
| 12 |
|
| 13 | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
| 14 | index dcaa92a..0de9632 100644
|
| 15 | |
| 16 | |
| 17 | @@ -127,6 +127,8 @@ if(BUILD_SHARED_LIBS)
|
| 18 | # with the mysofa-static library.
|
| 19 | set_target_properties(mysofa-shared
|
| 20 | PROPERTIES ARCHIVE_OUTPUT_NAME mysofa_shared)
|
| 21 | + set_target_properties(mysofa-shared
|
| 22 | + PROPERTIES PUBLIC_HEADER "${public-headers}")
|
| 23 |
|
| 24 | set_property(
|
| 25 | TARGET mysofa-shared
|