Bump version to 19.1.0git
[llvm-project.git] / flang / tools / flang-driver / CMakeLists.txt
blob9f33cdfe3fa90f773719e265db151c07180f8dfe
1 # Infrastructure to build flang driver entry point. Flang driver depends on
2 # LLVM libraries.
4 # Set your project compile flags.
5 link_directories(${LLVM_LIBRARY_DIR})
7 set( LLVM_LINK_COMPONENTS
8   ${LLVM_TARGETS_TO_BUILD}
9   Option
10   Support
11   TargetParser
14 add_flang_tool(flang-new
15   driver.cpp
16   fc1_main.cpp
19 target_link_libraries(flang-new
20   PRIVATE
21   flangFrontend
22   flangFrontendTool
25 clang_target_link_libraries(flang-new
26   PRIVATE
27   clangDriver
28   clangBasic
31 option(FLANG_PLUGIN_SUPPORT "Build Flang with plugin support." ON)
33 # Enable support for plugins, which need access to symbols from flang-new
34 if(FLANG_PLUGIN_SUPPORT)
35   export_executable_symbols_for_plugins(flang-new)
36 endif()
38 install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")