Skip to content

Commit 9449618

Browse files
authored
Merge pull request #1326 from ApexAI/iox-#1323-remove-cpptoml-patch-release-1.0
Iox #1323 remove cpptoml patch and fix cmake 3.23 warning for release 1.0
2 parents 18a3198 + e3c1c4a commit 9449618

File tree

5 files changed

+25
-39
lines changed

5 files changed

+25
-39
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## [v1.0.3](https://github.com/eclipse-iceoryx/iceoryx/tree/v1.0.3) (2022-04-08)
4+
5+
[Full Changelog](https://github.com/eclipse-iceoryx/iceoryx/compare/v1.0.2...v1.0.3)
6+
7+
**Bugfixes:**
8+
9+
- CMake warning: empty command-line option [\#1311](https://github.com/eclipse-iceoryx/iceoryx/issues/1311) thanks to @clalancette
10+
- Double build issue in ROS2 build farm [\#1323](https://github.com/eclipse-iceoryx/iceoryx/issues/1323)
11+
312
## [v1.0.2](https://github.com/eclipse-iceoryx/iceoryx/tree/v1.0.2) (2022-02-18)
413

514
[Full Changelog](https://github.com/eclipse-iceoryx/iceoryx/compare/v1.0.1...v1.0.2)

iceoryx_posh/cmake/cpptoml/0001-Add-include-limits-to-port-to-GCC-11.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

iceoryx_posh/cmake/cpptoml/CMakeLists.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ else()
3434
set(CREATE_PATH_COMMAND mkdir -p)
3535
endif()
3636

37-
if(DEFINED CMAKE_TOOLCHAIN_FILE)
38-
set(TOOLCHAIN_FILE "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
39-
set(cpptoml_DIR ${CMAKE_BINARY_DIR}/dependencies/install/lib/cmake/cpptoml)
40-
set(cpptoml_DIR ${cpptoml_DIR} CACHE PATH "" FORCE)
41-
endif()
42-
4337
# set download config, source and build paths
4438
set(DOWNLOAD_CONFIG_DIR ${CMAKE_BINARY_DIR}/dependencies/cpptoml/download)
4539
set(SOURCE_DIR ${CMAKE_BINARY_DIR}/dependencies/cpptoml/src)
@@ -64,16 +58,22 @@ endif()
6458

6559
file(MAKE_DIRECTORY ${BUILD_DIR})
6660

67-
execute_process(
68-
COMMAND git apply -p1 --ignore-space-change --whitespace=nowarn
69-
INPUT_FILE "${CMAKE_CURRENT_LIST_DIR}/0001-Add-include-limits-to-port-to-GCC-11.patch"
70-
WORKING_DIRECTORY "${SOURCE_DIR}"
71-
RESULT_VARIABLE result)
72-
if(result)
73-
message(WARNING "CMake step [patch] for cpptoml failed: ${result}! Build of cpptoml might fail")
61+
set(CMAKE_ADDITIONAL_OPTIONS
62+
"-DCMAKE_C_FLAGS_INIT=${CMAKE_C_FLAGS_INIT}"
63+
"-DCMAKE_CXX_FLAGS_INIT=${CMAKE_CXX_FLAGS_INIT}"
64+
"-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
65+
"-DCMAKE_C_COMPILER_TARGET=${CMAKE_C_COMPILER_TARGET}"
66+
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
67+
"-DCMAKE_CXX_COMPILER_TARGET=${CMAKE_CXX_COMPILER_TARGET}"
68+
"-DCMAKE_LINKER=${CMAKE_LINKER}")
69+
70+
if(DEFINED CMAKE_TOOLCHAIN_FILE)
71+
list(APPEND CMAKE_ADDITIONAL_OPTIONS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
72+
set(cpptoml_DIR ${CMAKE_BINARY_DIR}/dependencies/install/lib/cmake/cpptoml)
73+
set(cpptoml_DIR ${cpptoml_DIR} CACHE PATH "" FORCE)
7474
endif()
7575

76-
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" "-DCPPTOML_BUILD_EXAMPLES=off" "-DENABLE_LIBCXX=off" "-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}" "${TOOLCHAIN_FILE}" "${SOURCE_DIR}"
76+
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" "-DENABLE_LIBCXX=off" "-DCPPTOML_BUILD_EXAMPLES=off" "-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}" "${SOURCE_DIR}" ${CMAKE_ADDITIONAL_OPTIONS}
7777
RESULT_VARIABLE result
7878
WORKING_DIRECTORY ${BUILD_DIR} )
7979
if(result)

iceoryx_posh/include/iceoryx_posh/gateway/toml_gateway_config_parser.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "iceoryx_utils/cxx/expected.hpp"
2424

2525
#include <cpptoml.h>
26+
#include <limits> // workaround for missing include in cpptoml.h
2627

2728
namespace iox
2829
{

iceoryx_posh/source/roudi/roudi_config_toml_file_provider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "iceoryx_utils/posix_wrapper/posix_access_rights.hpp"
2525

2626
#include <cpptoml.h>
27+
#include <limits> // workaround for missing include in cpptoml.h
2728
#include <string>
2829

2930
namespace iox

0 commit comments

Comments
 (0)