/
githubmirror
/
ceph
Обзор
Документация
Войти
/
githubmirror
/
ceph
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v16.2.15
cmake/modules/ExternalProjectHelper.cmake
17 строк
927 B
Deepika Upadhyay
jaeger, build/op: add jaeger and it's dependencies as submodules
11 дек 2020, 10:55
11 дек 2020, 10:55
4b69d3a
Код
Авторство
О чём код?
function (set_library_properties_for_external_project _target _lib) # Manually create the directory, it will be created as part of the build, # but this runs in the configuration phase, and CMake generates an error if # we add an include directory that does not exist yet. set(_libfullname "${CMAKE_SHARED_LIBRARY_PREFIX}${_lib}${CMAKE_SHARED_LIBRARY_SUFFIX}") set(_libpath "${CMAKE_BINARY_DIR}/external/lib/${_libfullname}") set(_includepath "${CMAKE_BINARY_DIR}/external/include") message(STATUS "Configuring ${_target} with ${_libpath}") file(MAKE_DIRECTORY "${_includepath}") set_target_properties(${_target} PROPERTIES INTERFACE_LINK_LIBRARIES "${_libpath}" IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" IMPORTED_LOCATION "${_libpath}" INTERFACE_INCLUDE_DIRECTORIES "${_includepath}") # set_property(TARGET ${_target} APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES "CXX") endfunction ()