forked from OSchip/llvm-project
25 lines
955 B
CMake
25 lines
955 B
CMake
#
|
|
#//===----------------------------------------------------------------------===//
|
|
#//
|
|
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
#// See https://llvm.org/LICENSE.txt for license information.
|
|
#// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
#//
|
|
#//===----------------------------------------------------------------------===//
|
|
#
|
|
|
|
find_package (Python3 COMPONENTS Interpreter Development)
|
|
option(LIBOMP_OMPD_GDB_SUPPORT "Build gdb-plugin code that enables OMPD support in GDB." ${Python3_FOUND})
|
|
|
|
if(LIBOMP_OMPD_SUPPORT)
|
|
set(OMPD_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src/)
|
|
add_subdirectory(src)
|
|
if(LIBOMP_OMPD_GDB_SUPPORT)
|
|
add_subdirectory(gdb-plugin)
|
|
# temporarily disabled
|
|
# test/CMakeLists.txt breaks DeviceRTL in LLVM_ENABLE_PROJECTS builds.
|
|
# find_package(LLVM) is likely the source of the trouble.
|
|
# add_subdirectory(test)
|
|
endif()
|
|
endif()
|