brintos

brintos / llvm-project-archived public Read only

0
0
Text · 537 B · 47f8867 Raw
26 lines · plain
1include(CheckSymbolExists)2include(CMakePushCheckState)3 4add_lldb_unittest(ProcessElfCoreTests5  ThreadElfCoreTest.cpp6 7  LINK_COMPONENTS8    Support9  LINK_LIBS10    lldbCore11    lldbHost12    lldbUtilityHelpers13    lldbPluginProcessElfCore14    lldbPluginPlatformLinux15 16    LLVMTestingSupport17  )18 19cmake_push_check_state()20set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)21check_symbol_exists(gettid "unistd.h" HAVE_GETTID)22if(HAVE_GETTID)23  target_compile_definitions(ProcessElfCoreTests PRIVATE HAVE_GETTID)24endif()25cmake_pop_check_state()26