From 454a45f3605cd207adad171d431d26f6bdc40bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 24 Mar 2020 16:14:10 +0100 Subject: [PATCH] Fix compilation of System.Net.Security.Native It was accidentally moved to a OSX/iOS-only conditional in https://github.com/dotnet/runtime/pull/33970 but it should be built on Linux too. --- src/libraries/Native/Unix/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libraries/Native/Unix/CMakeLists.txt b/src/libraries/Native/Unix/CMakeLists.txt index 5d1ae5ecf28f3d..5f20c76877cf4e 100644 --- a/src/libraries/Native/Unix/CMakeLists.txt +++ b/src/libraries/Native/Unix/CMakeLists.txt @@ -195,15 +195,19 @@ endif() add_subdirectory(System.Native) -if (NOT CLR_CMAKE_TARGET_ARCH_WASM AND NOT CLR_CMAKE_TARGET_IOS) # TODO: reenable for iOS +if (NOT CLR_CMAKE_TARGET_ARCH_WASM) + add_subdirectory(System.Net.Security.Native) + +if (NOT CLR_CMAKE_TARGET_IOS) + # TODO: reenable for iOS add_subdirectory(System.Globalization.Native) # disable System.Security.Cryptography.Native build on iOS, # only used for interacting with OpenSSL which isn't useful there add_subdirectory(System.Security.Cryptography.Native) endif() +endif() if(CLR_CMAKE_TARGET_OSX OR CLR_CMAKE_TARGET_IOS) - add_subdirectory(System.Net.Security.Native) add_subdirectory(System.Security.Cryptography.Native.Apple) endif()