Skip to content

Commit

Permalink
Refs #20523. Move submodule check to idl_parser test CMake.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Jan 10, 2025
1 parent 732ebf1 commit 569b418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions test/feature/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 4 additions & 0 deletions test/feature/idl_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 569b418

Please sign in to comment.