[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / lldb / tools / debugserver / CMakeLists.txt
blobeba5c41491329ca8ad2a07f06415775745b2eed9
1 cmake_minimum_required(VERSION 3.13.4)
3 project(Debugserver LANGUAGES C CXX ASM-ATT)
5 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
6   set(CMAKE_MODULE_PATH
7     ${CMAKE_MODULE_PATH}
8     "${CMAKE_SOURCE_DIR}/../../cmake"
9     "${CMAKE_SOURCE_DIR}/../../cmake/modules"
10     )
12   include(LLDBStandalone)
13   include(debugserverConfig)
14   include(AddLLDB)
16   set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../")
17   include_directories(${LLDB_SOURCE_DIR}/include)
18 endif()
20 # debugserver contains ObjC++ code, so let's disable Clang modules
21 # in this subdirectory to avoid building ObjC++ modules (which often
22 # doesn't properly work).
23 remove_module_flags()
25 add_subdirectory(source)