diff options
author | claiff <claiff@mail.ru> | 2022-09-20 16:05:35 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-20 16:05:35 +0300 |
commit | a282ae6418c85db1aae5a2823dd37d56e56e5249 (patch) | |
tree | 00fb2677007f87b5572d088d0421e3075291f8ac /CMakeLists.txt | |
parent | 7485f26f35c9cfc1489a2e425fee57a2b51059a9 (diff) | |
download | obmc-sila-smtp-a282ae6418c85db1aae5a2823dd37d56e56e5249.tar.xz |
temp
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e3e2153..56bc523 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,6 @@ else() find_package (PkgConfig REQUIRED) pkg_check_modules (LOGGING phosphor-logging REQUIRED) - endif() include_directories(src) @@ -169,10 +168,6 @@ endif() add_executable(${PROJECT_NAME} ${SRC_FILES} ${PHOSPHOR_LOGGING_FILES}) -target_compile_definitions ( - ${PROJECT_NAME} PRIVATE $<$<BOOL:${ADD_JOURNAL_LOGGING}>: -DADD_JOURNAL_LOGGING> -) - if(NOT ${YOCTO_DEPENDENCIES}) add_dependencies(${PROJECT_NAME} sdbusplus-project) elseif(${ADD_PHOSPHOR_LOGGING}) @@ -187,3 +182,12 @@ target_link_libraries(${PROJECT_NAME} curl) install(TARGETS ${PROJECT_NAME} DESTINATION bin) install(FILES ${PROJECT_SOURCE_DIR}/xyz.openbmc_project.SMTP.service DESTINATION /lib/systemd/system/) + +target_compile_definitions ( + ${PROJECT_NAME} PRIVATE $<$<BOOL:${ADD_JOURNAL_LOGGING}>: -DADD_JOURNAL_LOGGING> + +) + +target_compile_definitions ( + ${PROJECT_NAME} PRIVATE $<$<BOOL:${ADD_PHOSPHOR_LOGGING}>: -DADD_PHOSPHOR_LOGGING> +) |