aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lcm/only-install-one-flavor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/lcm/only-install-one-flavor.patch')
-rw-r--r--vcpkg/ports/lcm/only-install-one-flavor.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/lcm/only-install-one-flavor.patch b/vcpkg/ports/lcm/only-install-one-flavor.patch
new file mode 100644
index 0000000..d22b83c
--- /dev/null
+++ b/vcpkg/ports/lcm/only-install-one-flavor.patch
@@ -0,0 +1,19 @@
+diff --git a/lcm/CMakeLists.txt b/lcm/CMakeLists.txt
+index a706a85..639ec12 100644
+--- a/lcm/CMakeLists.txt
++++ b/lcm/CMakeLists.txt
+@@ -76,8 +76,12 @@ endif()
+ target_include_directories(lcm-coretypes INTERFACE
+ $<BUILD_INTERFACE:${lcm_SOURCE_DIR}>
+ )
+-
+-install(TARGETS lcm-coretypes lcm-static lcm
++if(BUILD_SHARED_LIBS)
++ set(INSTALL_TARGETS lcm)
++else()
++ set(INSTALL_TARGETS lcm-static)
++endif()
++install(TARGETS lcm-coretypes ${INSTALL_TARGETS}
+ EXPORT lcmTargets
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib${LIB_SUFFIX}