libmysofa/Install-header-when-only-building-shared-lib.patch

24 lines
771 B
Diff

From 1b7d3bb0c5d13a6d2db0b439231ce65f4ad4cca0 Mon Sep 17 00:00:00 2001
From: "Jason E. Hale" <jhale@FreeBSD.org>
Date: Tue, 17 Oct 2023 15:10:23 -0400
Subject: [PATCH] Install header when only building shared library
Fixes #210
---
src/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index dcaa92a..0de9632 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -127,6 +127,8 @@ if(BUILD_SHARED_LIBS)
# with the mysofa-static library.
set_target_properties(mysofa-shared
PROPERTIES ARCHIVE_OUTPUT_NAME mysofa_shared)
+ set_target_properties(mysofa-shared
+ PROPERTIES PUBLIC_HEADER "${public-headers}")
set_property(
TARGET mysofa-shared