From 66f5494361b8aaaf1698492915a9d10eb2361c36 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 19 Aug 2024 12:00:37 -0700 Subject: [PATCH] Enable library evolution in CMake build The use of `@_implementationOnly` causes the compiler to warn of instability at runtime otherwise. --- Sources/ArgumentParser/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ArgumentParser/CMakeLists.txt b/Sources/ArgumentParser/CMakeLists.txt index 220419beb..0e1279f7d 100644 --- a/Sources/ArgumentParser/CMakeLists.txt +++ b/Sources/ArgumentParser/CMakeLists.txt @@ -50,7 +50,7 @@ add_library(ArgumentParser set_target_properties(ArgumentParser PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) target_compile_options(ArgumentParser PRIVATE - $<$:-enable-testing>) + $<$:-enable-testing> -enable-library-evolution) target_link_libraries(ArgumentParser PRIVATE $<$>:Foundation> ArgumentParserToolInfo)