Skip to content

Commit

Permalink
Merge pull request #1189 from sloretz/sloretz__iceoryx__include_proje…
Browse files Browse the repository at this point in the history
…ct_name

iox-#1194 Install includes to include/${PROJECT_NAME}
  • Loading branch information
elBoberido authored Mar 4, 2022
2 parents c35598e + b09566d commit 8a418d7
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/website/release-notes/iceoryx-v2-0-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ servers (`iox::popo::MessagingPattern::REQ_RES`) [\#27](https://github.com/eclip
- The DDS gateway is not aware of the new `Server` [\#1145](https://github.com/eclipse-iceoryx/iceoryx/issues/1145)
- Set `MAX_NUMBER_OF_NOTIFIERS` to 256 and prepare configuration via CMake[\#1144](https://github.com/eclipse-iceoryx/iceoryx/issues/1144)
- Reorganize code in publisher.hpp/.inl and subscriber.hpp/inl [\#1173](https://github.com/eclipse-iceoryx/iceoryx/issues/1173)
- Install headers to `include/iceoryx/vX.Y.Z` by default and add CMake option `MAKE_UNIQUE_INCLUDEDIR` to control the behavior [\#1194](https://github.com/eclipse-iceoryx/iceoryx/issues/1194)

**Bugfixes:**

Expand Down
15 changes: 15 additions & 0 deletions iceoryx_binding_c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES Darwin)
option(BUILD_SHARED_LIBS "Create shared libraries by default" ON)
endif()

option(MAKE_UNIQUE_INCLUDEDIR
"When ON headers are installed to a path ending with folders called \
iceoryx/vX.Y.Z/ . This avoids include directory search order issues when \
overriding this package from a merged catkin, ament, or colcon workspace."
ON)

if(MAKE_UNIQUE_INCLUDEDIR)
set(_unique_dir "iceoryx/v${IOX_VERSION_STRING}")
if(PREFIX STREQUAL "")
set(PREFIX "${_unique_dir}")
else()
set(PREFIX "${PREFIX}/${_unique_dir}")
endif()
endif()

#
########## set variables for export ##########
#
Expand Down
15 changes: 15 additions & 0 deletions iceoryx_hoofs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES Darwin)
option(BUILD_SHARED_LIBS "Create shared libraries by default" ON)
endif()

option(MAKE_UNIQUE_INCLUDEDIR
"When ON headers are installed to a path ending with folders called \
iceoryx/vX.Y.Z/ . This avoids include directory search order issues when \
overriding this package from a merged catkin, ament, or colcon workspace."
ON)

if(MAKE_UNIQUE_INCLUDEDIR)
set(_unique_dir "iceoryx/v${IOX_VERSION_STRING}")
if(PREFIX STREQUAL "")
set(PREFIX "${_unique_dir}")
else()
set(PREFIX "${PREFIX}/${_unique_dir}")
endif()
endif()

if(CLANG_TIDY)
find_program(
CLANG_TIDY_EXE
Expand Down
17 changes: 16 additions & 1 deletion iceoryx_posh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if(TOML_CONFIG)
find_package(cpptoml REQUIRED)
endif()

include(cmake/iceoryxversions.cmake)
include(IceoryxPackageHelper)
include(IceoryxPlatform)

Expand All @@ -45,6 +44,22 @@ if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES Darwin)
option(BUILD_SHARED_LIBS "Create shared libraries by default" ON)
endif()

option(MAKE_UNIQUE_INCLUDEDIR
"When ON headers are installed to a path ending with folders called \
iceoryx/vX.Y.Z/ . This avoids include directory search order issues when \
overriding this package from a merged catkin, ament, or colcon workspace."
ON)

if(MAKE_UNIQUE_INCLUDEDIR)
set(_unique_dir "iceoryx/v${IOX_VERSION_STRING}")
if(PREFIX STREQUAL "")
set(PREFIX "${_unique_dir}")
else()
set(PREFIX "${PREFIX}/${_unique_dir}")
endif()
endif()

include(cmake/iceoryxversions.cmake)

if(CLANG_TIDY)
find_program(
Expand Down

0 comments on commit 8a418d7

Please sign in to comment.