[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
Tue Sep 27 16:13:51 PDT 2016
pawosm01 added a comment.
The way LIBOMP_OMPT_SUPPORT is handled brought me some idea though:
diff -ruN openmp.old/runtime/cmake/LibompExports.cmake openmp/runtime/cmake/LibompExports.cmake
--- openmp.old/runtime/cmake/LibompExports.cmake 2016-09-27 11:23:44.209728000 +0100
+++ openmp/runtime/cmake/LibompExports.cmake 2016-09-28 00:10:54.843307159 +0100
@@ -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
what do you think?
Repository:
rL LLVM
https://reviews.llvm.org/D24959
More information about the Openmp-commits
mailing list