From 1dc4e01cbfbdc612203a98b6d2a6ffe37bbd3c90 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Sun, 27 Jan 2019 18:41:40 +0000 Subject: Fix some warnings on MSVC Differential Revision: https://reviews.llvm.org/D56329 llvm-svn: 352322 --- llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/examples') diff --git a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt index e4f275d01d4..563b8cc848f 100644 --- a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt +++ b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt @@ -11,3 +11,8 @@ if(LLVM_COMPILER_IS_GCC_COMPATIBLE) -Wno-unused-private-field ) endif() + +if(MSVC) + # ignore "warning LNK4199: /DELAYLOAD:shell32.dll ignored; no imports found from shell32.dll" + target_link_libraries(Kaleidoscope-Ch2 PRIVATE "-ignore:4199") +endif() -- cgit v1.2.3