2 #//===----------------------------------------------------------------------===//
4 #// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 #// See https://llvm.org/LICENSE.txt for license information.
6 #// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 #//===----------------------------------------------------------------------===//
11 find_package (Python3 COMPONENTS Interpreter Development)
12 option(LIBOMP_OMPD_GDB_SUPPORT "Build gdb-plugin code that enables OMPD support in GDB." ${Python3_FOUND})
13 find_program (GDB_FOUND NAMES "gdb")
16 if(LIBOMP_OMPD_SUPPORT)
17 set(OMPD_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src/)
19 if(LIBOMP_OMPD_GDB_SUPPORT)
20 add_subdirectory(gdb-plugin)
21 # GDB is required to run the tests
23 add_subdirectory(test)