Fix compilation of System.Net.Security.Native (#34018)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 24 Mar 2020 17:20:37 +0000 (18:20 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 17:20:37 +0000 (18:20 +0100)
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

index 5d1ae5e..5f20c76 100644 (file)
@@ -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()