1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/examples/Kaleidoscope/Chapter2/CMakeLists.txt
Alexandre Ganea a14613de97 Fix some warnings on MSVC
Differential Revision: https://reviews.llvm.org/D56329

llvm-svn: 352322
2019-01-27 18:41:40 +00:00

19 lines
406 B
CMake

set(LLVM_LINK_COMPONENTS
Support
)
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)
if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
target_compile_options(Kaleidoscope-Ch2 PRIVATE
-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()