Skip to content

Commit

Permalink
Fix idl_compiler_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed May 24, 2024
1 parent 0a5c014 commit be05301
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions tests/cmake/idl_compiler_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,38 @@ function(assert_includes target)

get_target_property(interface_include_directories ${target} INTERFACE_INCLUDE_DIRECTORIES)
remove_build_interface("${interface_include_directories}" interface_include_directories)
if(DEFINED OPENDDS_CONFIG_INCLUDE_DIR)
if(arg_INTERFACE)
list(APPEND arg_INTERFACE "${OPENDDS_CONFIG_INCLUDE_DIR}")
endif()
list(APPEND arg_PRIVATE "${OPENDDS_CONFIG_INCLUDE_DIR}")
endif()
foreach(inc ${arg_INTERFACE})
if(NOT "${inc}" IN_LIST interface_include_directories)
message(SEND_ERROR "ERROR: ${target} expected ${inc} in INTERFACE includes")
endif()
endforeach()
# if(interface_include_directories)
# foreach(inc ${interface_include_directories})
# if(NOT "${inc}" IN_LIST arg_INTERFACE)
# message(SEND_ERROR "ERROR: ${target} unexpected ${inc} in INTERFACE includes")
# endif()
# endforeach()
# endif()
if(interface_include_directories)
foreach(inc ${interface_include_directories})
if(NOT "${inc}" IN_LIST arg_INTERFACE)
message(SEND_ERROR "ERROR: ${target} unexpected ${inc} in INTERFACE includes")
endif()
endforeach()
endif()
get_target_property(include_directories ${target} INCLUDE_DIRECTORIES)
remove_build_interface("${include_directories}" include_directories)
foreach(inc ${arg_PRIVATE})
if(NOT ${inc} IN_LIST include_directories)
message(SEND_ERROR "ERROR: ${target} expected ${inc} in PRIVATE includes")
endif()
endforeach()
# if(include_directories)
# foreach(inc ${include_directories})
# if(NOT ${inc} IN_LIST arg_PRIVATE)
# message(SEND_ERROR "ERROR: ${target} unexpected ${inc} in PRIVATE includes")
# endif()
# endforeach()
# endif()
if(include_directories)
foreach(inc ${include_directories})
if(NOT ${inc} IN_LIST arg_PRIVATE)
message(SEND_ERROR "ERROR: ${target} unexpected ${inc} in PRIVATE includes")
endif()
endforeach()
endif()
endfunction()

function(assert_generated_output file)
Expand Down

0 comments on commit be05301

Please sign in to comment.