vcpkg/ports/iir1/fix-shared-lib.patch
myd7349 9c2a4a1640
[iir1] Update to 1.9.4 (#32370)
* [iir1] Update to 1.9.4

* [iir1] Overwrite version
2023-07-06 10:41:40 -07:00

21 lines
641 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4dd67df..3840ff8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,7 @@ set_target_properties(iir PROPERTIES
PUBLIC_HEADER Iir.h
PRIVATE_HEADER "${LIBINCLUDE}")
+if(BUILD_SHARED_LIBS)
install(TARGETS iir EXPORT iir-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -91,6 +92,7 @@ install(TARGETS iir EXPORT iir-targets
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PRIVATE_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/iir)
+endif()
include(JoinPaths)