1 diff --git a/src/installer/corehost/cli/common.cmake b/src/installer/corehost/cli/common.cmake
2 index 63e7306..639c90e 100644
3 --- a/src/installer/corehost/cli/common.cmake
4 +++ b/src/installer/corehost/cli/common.cmake
6 project(${DOTNET_PROJECT_NAME})
9 - add_compile_options($<$<CONFIG:RelWithDebInfo>:/MT>)
10 - add_compile_options($<$<CONFIG:Release>:/MT>)
11 - add_compile_options($<$<CONFIG:Debug>:/MTd>)
13 add_compile_options(-fvisibility=hidden)
15 diff --git a/src/installer/corehost/cli/nethost/CMakeLists.txt b/src/installer/corehost/cli/nethost/CMakeLists.txt
16 index 7473958..49c664f 100644
17 --- a/src/installer/corehost/cli/nethost/CMakeLists.txt
18 +++ b/src/installer/corehost/cli/nethost/CMakeLists.txt
20 # The .NET Foundation licenses this file to you under the MIT license.
21 # See the LICENSE file in the project root for more information.
23 -cmake_minimum_required (VERSION 2.6)
24 +cmake_minimum_required (VERSION 3.14)
27 set(DOTNET_PROJECT_NAME "nethost")
30 +include(../../../settings.cmake)
31 +include(../../../functions.cmake)
32 include_directories(../fxr)
34 # CMake does not recommend using globbing since it messes with the freshness checks
35 @@ -22,13 +24,18 @@ if(WIN32)
39 +if(BUILD_SHARED_LIBS)
42 include(../lib_static.cmake)
45 add_definitions(-DFEATURE_LIBHOST=1)
46 add_definitions(-DNETHOST_EXPORT)
48 -install(FILES nethost.h DESTINATION corehost)
49 -install(TARGETS nethost DESTINATION corehost)
50 -install(TARGETS libnethost DESTINATION corehost)
51 -install_symbols(nethost corehost)
52 \ No newline at end of file
53 +install(FILES nethost.h ../coreclr_delegates.h ../hostfxr.h DESTINATION include)
54 +if(BUILD_SHARED_LIBS)
55 +install(TARGETS nethost)
57 +install(TARGETS libnethost)