Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1013 Replace generator expression with if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jan 13, 2022
1 parent 500a781 commit dff2876
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions iceoryx_hoofs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ if(GTest_FOUND) # only GTest_FOUND, just in case someone want's to use iceoryx_h
GTest::gtest
GTest::gmock
${CMAKE_DL_LIBS}
$<$<PLATFORM_ID:Linux>: rt>
)

if(LINUX)
target_link_libraries(iceoryx_hoofs_testing PRIVATE rt)
endif()

target_compile_options(iceoryx_hoofs_testing PRIVATE ${ICEORYX_WARNINGS})

setup_install_directories_and_export_package(
Expand Down Expand Up @@ -194,9 +197,12 @@ target_link_libraries(iceoryx_hoofs
iceoryx_hoofs::iceoryx_platform
PRIVATE
${ICEORYX_SANITIZER_FLAGS}
$<$<PLATFORM_ID:Linux>: acl atomic ${CODE_COVERAGE_LIBS}>
)

if(LINUX)
target_link_libraries(iceoryx_hoofs PRIVATE acl atomic ${CODE_COVERAGE_LIBS})
endif()

target_compile_options(iceoryx_hoofs PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS})

# TODO: Make ICEORYX::UTILS private???
Expand Down

0 comments on commit dff2876

Please sign in to comment.