diff --git a/openmp/README.rst b/openmp/README.rst --- a/openmp/README.rst +++ b/openmp/README.rst @@ -248,8 +248,7 @@ out-of-tree builds. **LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER** = ``""`` - Path of the folder that contains ``libomp.so``. This is required for testing - out-of-tree builds. + Path of the folder that contains ``libomp.so``. This is required for testing. Options for ``NVPTX device RTL`` -------------------------------- diff --git a/openmp/libomptarget/CMakeLists.txt b/openmp/libomptarget/CMakeLists.txt --- a/openmp/libomptarget/CMakeLists.txt +++ b/openmp/libomptarget/CMakeLists.txt @@ -75,6 +75,7 @@ "Path to folder containing libomp.so") else() set(LIBOMPTARGET_OPENMP_HEADER_FOLDER "${CMAKE_CURRENT_BINARY_DIR}/../runtime/src") + set(LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER "${LIBOMP_LIBRARY_DIR}") endif()