File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
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 ()
Original file line number Diff line number Diff line change @@ -37,12 +37,8 @@ target_link_libraries(IdlParserTests
37
37
)
38
38
gtest_discover_tests (IdlParserTests )
39
39
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
+ )
You can’t perform that action at this time.
0 commit comments