From 0c5855af55731e5b37bb9fc415329037b680b3c7 Mon Sep 17 00:00:00 2001 From: Yangbo Long Date: Mon, 14 Oct 2024 23:01:00 -0400 Subject: [PATCH] Try fixing ci/cd Signed-off-by: Yangbo Long --- test/feature/CMakeLists.txt | 7 ++++++- test/feature/idl_parser/CMakeLists.txt | 14 +++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/test/feature/CMakeLists.txt b/test/feature/CMakeLists.txt index a4fc1572880..845e32db139 100644 --- a/test/feature/CMakeLists.txt +++ b/test/feature/CMakeLists.txt @@ -13,4 +13,9 @@ # limitations under the License. add_subdirectory(dynamic_types) -add_subdirectory(idl_parser) + +if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL") + add_subdirectory(idl_parser) +else() + message(WARNING "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized.") +endif() diff --git a/test/feature/idl_parser/CMakeLists.txt b/test/feature/idl_parser/CMakeLists.txt index c8786bf9a55..a81d5dbab6f 100644 --- a/test/feature/idl_parser/CMakeLists.txt +++ b/test/feature/idl_parser/CMakeLists.txt @@ -37,12 +37,8 @@ target_link_libraries(IdlParserTests ) gtest_discover_tests(IdlParserTests) -if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL") - message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing") - add_custom_command( - TARGET IdlParserTests POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $/IDL - ) -else() - message(WARNING "The folder thirdparty/dds-types-test/IDL does not exist. The git submodule might not have been initialized.") -endif() +message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing") +add_custom_command( + TARGET IdlParserTests POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $/IDL +)