If we're not touching them, we don't need to do anything special to pass them along -- with one important caveat: due to how cmake arguments work, the implicitly passed arguments need to be specified before arguments that we handle. This isn't particularly nice, but the alternative is enumerating all arguments that can be used by llvm_add_library and the macros it calls (it also relies on implicit passing of some arguments to llvm_process_sources).
23 lines
513 B
CMake
23 lines
513 B
CMake
if ( CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD" )
|
|
list(APPEND EXTRA_PLUGINS lldbPluginProcessPOSIX)
|
|
endif()
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
list(APPEND EXTRA_PLUGINS lldbPluginProcessWindowsCommon)
|
|
endif ()
|
|
|
|
add_lldb_library(lldbInitialization
|
|
SystemInitializerCommon.cpp
|
|
SystemInitializer.cpp
|
|
SystemLifetimeManager.cpp
|
|
|
|
LINK_COMPONENTS
|
|
Support
|
|
LINK_LIBS
|
|
lldbCore
|
|
lldbHost
|
|
lldbPluginProcessGDBRemote
|
|
${EXTRA_PLUGINS}
|
|
${LLDB_SYSTEM_LIBS}
|
|
)
|