From 526efe86427a4d49da38773534d84025dd4246c3 Mon Sep 17 00:00:00 2001 From: Ethan Stewart Date: Tue, 10 Nov 2020 15:32:59 -0600 Subject: [PATCH] Add cmake option for copying source for debugging. --- openmp/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt index a86e83c50212..51962b561a3b 100644 --- a/openmp/CMakeLists.txt +++ b/openmp/CMakeLists.txt @@ -103,3 +103,11 @@ endif() # Now that we have seen all testsuites, create the check-openmp target. construct_check_openmp_target() + +option(DEBUG_COPY_SOURCE "Enable source code copy for openmp debug build." + ${ENABLE_SOURCE_COPY}) +if (${ENABLE_SOURCE_COPY}) + install(DIRECTORY runtime/src DESTINATION ${OPENMP_INSTALL_LIBDIR}/src/openmp/runtime) + install(DIRECTORY libomptarget/src libomptarget/plugins DESTINATION ${OPENMP_INSTALL_LIBDIR}/src/openmp/libomptarget) + install(DIRECTORY libompd/src DESTINATION ${OPENMP_INSTALL_LIBDIR}/src/openmp/libompd) +endif() -- 2.17.1