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 )