[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
Fri Sep 30 15:14:35 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL282965: [cmake] Fix for a bug https://llvm.org/bugs/show_bug.cgi?id=30489 "Cannot build… (authored by pawosm01).

Changed prior to commit:
  https://reviews.llvm.org/D24959?vs=72910&id=73154#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24959

Files:
  openmp/trunk/runtime/cmake/LibompExports.cmake


Index: openmp/trunk/runtime/cmake/LibompExports.cmake
===================================================================
--- openmp/trunk/runtime/cmake/LibompExports.cmake
+++ openmp/trunk/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.73154.patch
Type: text/x-patch
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160930/e1aeea80/attachment.bin>


More information about the Openmp-commits mailing list