diff --git a/test/feature/CMakeLists.txt b/test/feature/CMakeLists.txt index ae2460469a..a4fc157288 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 c03e8ec452..d3c3dbadea 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