[PATCH] D81266: [flang] Fix issue of flang/runtime/config.h not being found in out of tree builds

Isuru Fernando via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 12:44:48 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbb73d1b278eb: [flang] Fix issue of flang/runtime/config.h not being found in out of treeā€¦ (authored by isuruf).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81266/new/

https://reviews.llvm.org/D81266

Files:
  flang/runtime/CMakeLists.txt


Index: flang/runtime/CMakeLists.txt
===================================================================
--- flang/runtime/CMakeLists.txt
+++ flang/runtime/CMakeLists.txt
@@ -25,6 +25,10 @@
 endif()
 
 configure_file(config.h.cmake config.h)
+# include_directories is used here instead of target_include_directories
+# because add_flang_library creates multiple objects (STATIC/SHARED, OBJECT)
+# with different names
+include_directories(AFTER ${CMAKE_CURRENT_BINARY_DIR})
 
 add_flang_library(FortranRuntime
   ISO_Fortran_binding.cpp


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81266.269322.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200608/108cb1b5/attachment.bin>


More information about the llvm-commits mailing list