Skip to content

Commit

Permalink
fix: Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase committed May 6, 2024
1 parent 2d46102 commit 26412e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ecal/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,9 @@ add_library(eCAL::${PROJECT_NAME}_c ALIAS ${PROJECT_NAME}_c)
target_link_libraries(${PROJECT_NAME}_c ${PROJECT_NAME})

target_compile_definitions(${PROJECT_NAME}_c
INTERFACE ECAL_C_DLL
PRIVATE
$<$<BOOL:${ECAL_CORE_BUILD_SHARED}>:eCAL_EXPORTS>
ECAL_NO_DEPRECATION_WARNINGS
)

target_compile_definitions(${PROJECT_NAME}
Expand All @@ -579,7 +579,11 @@ target_compile_definitions(${PROJECT_NAME}
ECAL_NO_DEPRECATION_WARNINGS
)

if(NOT "${ECAL_CORE_BUILD_SHARED}")
if("${ECAL_CORE_BUILD_SHARED}")
target_compile_definitions(${PROJECT_NAME}_c
INTERFACE ECAL_C_DLL
)
else()
target_compile_definitions(${PROJECT_NAME} PUBLIC
ECAL_STATIC
)
Expand Down

0 comments on commit 26412e1

Please sign in to comment.