Skip to content

Commit

Permalink
remove redundant compile definitions (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 authored Jul 22, 2024
1 parent 70d819a commit 7377fff
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions install/PackageConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ endif()

add_library(__zenohc_static STATIC IMPORTED GLOBAL)
message(STATUS "ZENOHC_BUILD_WITH_UNSTABLE_API=${ZENOHC_BUILD_WITH_UNSTABLE_API}")
if(ZENOHC_BUILD_WITH_UNSTABLE_API)
target_compile_definitions(__zenohc_static INTERFACE UNSTABLE)
endif()
message(STATUS "ZENOHC_BUILD_WITH_SHARED_MEMORY=${ZENOHC_BUILD_WITH_SHARED_MEMORY}")
if(ZENOHC_BUILD_WITH_SHARED_MEMORY)
target_compile_definitions(__zenohc_static INTERFACE SHARED_MEMORY)
endif()

add_library(zenohc::static ALIAS __zenohc_static)
target_link_libraries(__zenohc_static INTERFACE @NATIVE_STATIC_LIBS@)
Expand All @@ -55,13 +49,6 @@ if(NOT ("@IMPLIB@" STREQUAL ""))
set_property(TARGET __zenohc_shared PROPERTY IMPORTED_IMPLIB "${_IMPORT_PREFIX}/@CMAKE_INSTALL_LIBDIR@/@IMPLIB@")
endif()

if(ZENOHC_BUILD_WITH_UNSTABLE_API)
target_compile_definitions(__zenohc_shared INTERFACE UNSTABLE)
endif()
if(ZENOHC_BUILD_WITH_SHARED_MEMORY)
target_compile_definitions(__zenohc_shared INTERFACE SHARED_MEMORY)
endif()

if(ZENOHC_LIB_STATIC)
add_library(zenohc::lib ALIAS __zenohc_static)
else()
Expand Down

0 comments on commit 7377fff

Please sign in to comment.