Skip to content

Commit 0c5855a

Browse files
committed
Try fixing ci/cd
Signed-off-by: Yangbo Long <[email protected]>
1 parent eea1733 commit 0c5855a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

test/feature/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
# limitations under the License.
1414

1515
add_subdirectory(dynamic_types)
16-
add_subdirectory(idl_parser)
16+
17+
if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL")
18+
add_subdirectory(idl_parser)
19+
else()
20+
message(WARNING "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized.")
21+
endif()

test/feature/idl_parser/CMakeLists.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ target_link_libraries(IdlParserTests
3737
)
3838
gtest_discover_tests(IdlParserTests)
3939

40-
if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL")
41-
message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing")
42-
add_custom_command(
43-
TARGET IdlParserTests POST_BUILD
44-
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $<TARGET_FILE_DIR:IdlParserTests>/IDL
45-
)
46-
else()
47-
message(WARNING "The folder thirdparty/dds-types-test/IDL does not exist. The git submodule might not have been initialized.")
48-
endif()
40+
message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing")
41+
add_custom_command(
42+
TARGET IdlParserTests POST_BUILD
43+
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $<TARGET_FILE_DIR:IdlParserTests>/IDL
44+
)

0 commit comments

Comments
 (0)