diff --git a/flang/examples/ExternalHelloWorld/CMakeLists.txt b/flang/examples/ExternalHelloWorld/CMakeLists.txt index ec4a4b042291f..042d4b6238ba4 100644 --- a/flang/examples/ExternalHelloWorld/CMakeLists.txt +++ b/flang/examples/ExternalHelloWorld/CMakeLists.txt @@ -1,8 +1,9 @@ -set(LLVM_LINK_COMPONENTS - FortranRuntime - ) - # This test is not run by default as it requires input. add_llvm_example(external-hello-world external-hello.cpp ) + +target_link_libraries(external-hello-world + PRIVATE + FortranRuntime + )