From f8dfa40dc21c01e4dc297aeb4a23db22d1830506 Mon Sep 17 00:00:00 2001 From: Gaurav Khanna Date: Thu, 3 Mar 2016 18:10:26 -0800 Subject: Fixup CRT linkages for uCRT --- src/tools/GenClrDebugResource/CMakeLists.txt | 7 ++++++- src/tools/InjectResource/CMakeLists.txt | 7 ++++++- src/tools/crossgen/CMakeLists.txt | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src/tools') diff --git a/src/tools/GenClrDebugResource/CMakeLists.txt b/src/tools/GenClrDebugResource/CMakeLists.txt index c23a603adf..c30f391440 100644 --- a/src/tools/GenClrDebugResource/CMakeLists.txt +++ b/src/tools/GenClrDebugResource/CMakeLists.txt @@ -3,4 +3,9 @@ add_executable(GenClrDebugResource GenClrDebugResource.cpp) target_link_libraries(GenClrDebugResource ${STATIC_MT_CRT_LIB} -) \ No newline at end of file +) + +# ARM64_TODO: Enable this for Windows Arm64 +if (NOT CLR_CMAKE_PLATFORM_ARCH_ARM64) + target_link_libraries(GenClrDebugResource ${STATIC_MT_VCRT_LIB}) +endif() \ No newline at end of file diff --git a/src/tools/InjectResource/CMakeLists.txt b/src/tools/InjectResource/CMakeLists.txt index b530923fcf..f8593069ab 100644 --- a/src/tools/InjectResource/CMakeLists.txt +++ b/src/tools/InjectResource/CMakeLists.txt @@ -6,4 +6,9 @@ add_executable(InjectResource InjectResource.cpp) target_link_libraries(InjectResource ${STATIC_MT_CRT_LIB} -) \ No newline at end of file +) + +# ARM64_TODO: Enable this for Windows Arm64 +if (NOT CLR_CMAKE_PLATFORM_ARCH_ARM64) + target_link_libraries(InjectResource ${STATIC_MT_VCRT_LIB}) +endif() \ No newline at end of file diff --git a/src/tools/crossgen/CMakeLists.txt b/src/tools/crossgen/CMakeLists.txt index cb983bdd83..9bbf37334a 100644 --- a/src/tools/crossgen/CMakeLists.txt +++ b/src/tools/crossgen/CMakeLists.txt @@ -60,6 +60,11 @@ else() ${STATIC_MT_CRT_LIB} ) + # ARM64_TODO: Enable this for Windows Arm64 + if (NOT CLR_CMAKE_PLATFORM_ARCH_ARM64) + target_link_libraries(crossgen ${STATIC_MT_VCRT_LIB}) + endif() + # We will generate PDB only for the debug configuration install (FILES ${CMAKE_CURRENT_BINARY_DIR}/$/crossgen.pdb DESTINATION PDB) -- cgit v1.2.3