From 569b41871b2a69ef1ecfaa6df23ce04217ef90d2 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Fri, 10 Jan 2025 07:55:55 +0100 Subject: [PATCH] Refs #20523. Move submodule check to idl_parser test CMake. Signed-off-by: Miguel Company --- test/feature/CMakeLists.txt | 7 +------ test/feature/idl_parser/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/feature/CMakeLists.txt b/test/feature/CMakeLists.txt index ae2460469ab..a4fc1572880 100644 --- a/test/feature/CMakeLists.txt +++ b/test/feature/CMakeLists.txt @@ -13,9 +13,4 @@ # limitations under the License. add_subdirectory(dynamic_types) - -if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL") - add_subdirectory(idl_parser) -else() - message(FATAL_ERROR "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized.") -endif() +add_subdirectory(idl_parser) diff --git a/test/feature/idl_parser/CMakeLists.txt b/test/feature/idl_parser/CMakeLists.txt index c03e8ec4521..d3c3dbadea1 100644 --- a/test/feature/idl_parser/CMakeLists.txt +++ b/test/feature/idl_parser/CMakeLists.txt @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(NOT EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL") + message(FATAL_ERROR "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized.") +endif() + if(WIN32) add_definitions( -D_WIN32_WINNT=0x0601