blob: 5b506166b7aeaae21b01ca20a1d70facc72ef4fe [file] [log] [blame]
include(CheckIncludeFiles)
set(LLVM_LINK_COMPONENTS support)
add_clang_library(clangDirectoryWatcher
DirectoryWatcher.cpp
)
if(BUILD_SHARED_LIBS)
if(APPLE)
check_include_files("CoreServices/CoreServices.h" HAVE_CORESERVICES_H)
if(HAVE_CORESERVICES_H)
set(DIRECTORY_WATCHER_FLAGS "${DIRECTORY_WATCHER_FLAGS} -framework CoreServices")
endif()
set_property(TARGET clangDirectoryWatcher APPEND_STRING PROPERTY
LINK_FLAGS ${DIRECTORY_WATCHER_FLAGS})
endif()
endif()