From 865de0c130f3d34174ac7a410789df3c44a27fd2 Mon Sep 17 00:00:00 2001 From: Charlie Barto Date: Thu, 28 Jan 2021 19:45:59 -0800 Subject: clarify the actions of vcpkg_check_linkage (#15832) Co-authored-by: Charles Barto --- docs/maintainers/vcpkg_check_linkage.md | 2 ++ scripts/cmake/vcpkg_check_linkage.cmake | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/maintainers/vcpkg_check_linkage.md b/docs/maintainers/vcpkg_check_linkage.md index f9c149b68..66760675e 100644 --- a/docs/maintainers/vcpkg_check_linkage.md +++ b/docs/maintainers/vcpkg_check_linkage.md @@ -14,6 +14,8 @@ vcpkg_check_linkage( ### ONLY_STATIC_LIBRARY Indicates that this port can only be built with static library linkage. +Note: If the user requested a dynamic build ONLY_STATIC_LIBRARY will result in a note being printed, not a fatal error. + ### ONLY_DYNAMIC_LIBRARY Indicates that this port can only be built with dynamic/shared library linkage. diff --git a/scripts/cmake/vcpkg_check_linkage.cmake b/scripts/cmake/vcpkg_check_linkage.cmake index 9a8a7acb0..97e29bad7 100644 --- a/scripts/cmake/vcpkg_check_linkage.cmake +++ b/scripts/cmake/vcpkg_check_linkage.cmake @@ -15,6 +15,8 @@ vcpkg_check_linkage( ### ONLY_STATIC_LIBRARY Indicates that this port can only be built with static library linkage. +Note: If the user requested a dynamic build ONLY_STATIC_LIBRARY will result in a note being printed, not a fatal error. + ### ONLY_DYNAMIC_LIBRARY Indicates that this port can only be built with dynamic/shared library linkage. -- cgit v1.2.3