diff --git a/iceoryx_posh/cmake/cpptoml/CMakeLists.txt b/iceoryx_posh/cmake/cpptoml/CMakeLists.txt index 42e79d98fb..e770e4fdba 100644 --- a/iceoryx_posh/cmake/cpptoml/CMakeLists.txt +++ b/iceoryx_posh/cmake/cpptoml/CMakeLists.txt @@ -59,7 +59,9 @@ file(MAKE_DIRECTORY ${BUILD_DIR}) set(CMAKE_ADDITIONAL_OPTIONS "-DCMAKE_C_FLAGS_INIT=${CMAKE_C_FLAGS_INIT}" + "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}" "-DCMAKE_CXX_FLAGS_INIT=${CMAKE_CXX_FLAGS_INIT}" + "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}" "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}" "-DCMAKE_C_COMPILER_TARGET=${CMAKE_C_COMPILER_TARGET}" "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"