From a51fba6b0f0217ed0dfd5daf06548e9adab59ff0 Mon Sep 17 00:00:00 2001 From: David Truby Date: Mon, 3 Jul 2023 15:50:40 +0100 Subject: [PATCH] [flang] Install omp_lib.h to install directory alongside modules This patch simply adds a cmake install line for omp_lib.h that was previously missing, to put it alongisde omp_lib.mod so it can be found by the driver. --- flang/tools/f18/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt index 39272ccd5828..d7538feef121 100644 --- a/flang/tools/f18/CMakeLists.txt +++ b/flang/tools/f18/CMakeLists.txt @@ -80,3 +80,4 @@ endif() # TODO Move this to a more suitable location file(COPY ${FLANG_SOURCE_DIR}/module/omp_lib.h DESTINATION "${CMAKE_BINARY_DIR}/include/flang/OpenMP/" FILE_PERMISSIONS OWNER_READ OWNER_WRITE) +install(FILES ${CMAKE_BINARY_DIR}/include/flang/OpenMP/omp_lib.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang/OpenMP")