[Openmp-commits] [PATCH] D24959: [cmake] Fix for a bug https://llvm.org/bugs/show_bug.cgi?id=30489 "Cannot build with -DLIBOMP_FORTRAN_MODULES=True"

Paul Osmialowski via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 28 15:11:06 PDT 2016


pawosm01 updated this revision to Diff 72910.

Repository:
  rL LLVM

https://reviews.llvm.org/D24959

Files:
  runtime/cmake/LibompExports.cmake

Index: runtime/cmake/LibompExports.cmake
===================================================================
--- runtime/cmake/LibompExports.cmake
+++ runtime/cmake/LibompExports.cmake
@@ -64,10 +64,12 @@
 if(${LIBOMP_FORTRAN_MODULES})
   add_custom_command(TARGET libomp-mod POST_BUILD
     COMMAND ${CMAKE_COMMAND} -E make_directory ${LIBOMP_EXPORTS_MOD_DIR}
-    COMMAND ${CMAKE_COMMAND} -E copy omp_lib.h ${LIBOMP_EXPORTS_CMN_DIR}
     COMMAND ${CMAKE_COMMAND} -E copy omp_lib.mod ${LIBOMP_EXPORTS_MOD_DIR}
     COMMAND ${CMAKE_COMMAND} -E copy omp_lib_kinds.mod ${LIBOMP_EXPORTS_MOD_DIR}
   )
+  add_custom_command(TARGET omp POST_BUILD
+    COMMAND ${CMAKE_COMMAND} -E copy omp_lib.h ${LIBOMP_EXPORTS_CMN_DIR}
+  )
 endif()
 
 # Copy OpenMP library into exports/ directory post build


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24959.72910.patch
Type: text/x-patch
Size: 790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160928/48313b41/attachment.bin>


More information about the Openmp-commits mailing list