From 7a3a7122ea78811dfa17637126835438a079e3b0 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 21 Nov 2024 20:59:49 +0100 Subject: [PATCH] [#521] Fix cmake build with iceoryx2 as submodule --- doc/release-notes/iceoryx2-unreleased.md | 2 ++ iceoryx2-ffi/c/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/release-notes/iceoryx2-unreleased.md b/doc/release-notes/iceoryx2-unreleased.md index 0956ef20c..6318529b5 100644 --- a/doc/release-notes/iceoryx2-unreleased.md +++ b/doc/release-notes/iceoryx2-unreleased.md @@ -30,6 +30,8 @@ [#436](https://github.com/eclipse-iceoryx/iceoryx2/issues/436) * Fix misleading warning related to default config file [#437](https://github.com/eclipse-iceoryx/iceoryx2/issues/437) +* Fix cmake build with iceoryx2 as submodule + [#521](https://github.com/eclipse-iceoryx/iceoryx2/issues/521) ### Refactoring diff --git a/iceoryx2-ffi/c/CMakeLists.txt b/iceoryx2-ffi/c/CMakeLists.txt index bd6b952c8..abb7929fb 100644 --- a/iceoryx2-ffi/c/CMakeLists.txt +++ b/iceoryx2-ffi/c/CMakeLists.txt @@ -80,7 +80,7 @@ add_custom_target( ${ICEORYX2_C_STATIC_LIB_LINK_FILE} ${ICEORYX2_C_SHARED_LIB_LINK_FILE} ${ICEORYX2_C_SHARED_LIB_DLL_FILE} - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../.. VERBATIM USES_TERMINAL )