Changeset View
Changeset View
Standalone View
Standalone View
openmp/CMakeLists.txt
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading." | option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading." | ||||
${ENABLE_LIBOMPTARGET}) | ${ENABLE_LIBOMPTARGET}) | ||||
option(OPENMP_ENABLE_LIBOMP_PROFILING "Enable time profiling for libomp." OFF) | option(OPENMP_ENABLE_LIBOMP_PROFILING "Enable time profiling for libomp." OFF) | ||||
# Header install location | # Header install location | ||||
if(${OPENMP_STANDALONE_BUILD}) | if(${OPENMP_STANDALONE_BUILD}) | ||||
set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}") | set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}") | ||||
else() | else() | ||||
string(REGEX MATCH "[0-9]+" CLANG_VERSION ${PACKAGE_VERSION}) | include(GetClangResourceDir) | ||||
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include") | get_clang_resource_dir(LIBOMP_HEADERS_INSTALL_PATH SUBDIR include) | ||||
endif() | endif() | ||||
# Build host runtime library, after LIBOMPTARGET variables are set since they are needed | # Build host runtime library, after LIBOMPTARGET variables are set since they are needed | ||||
# to enable time profiling support in the OpenMP runtime. | # to enable time profiling support in the OpenMP runtime. | ||||
add_subdirectory(runtime) | add_subdirectory(runtime) | ||||
# Build libompd.so | # Build libompd.so | ||||
add_subdirectory(libompd) | add_subdirectory(libompd) | ||||
Show All 31 Lines |