Skip to content

Commit

Permalink
Duarte's patch for BM source dir injection
Browse files Browse the repository at this point in the history
  • Loading branch information
kheaactua committed Jan 21, 2025
1 parent 8fbabbf commit 4e04a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion test/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ target_include_directories (
PUBLIC include
PRIVATE src
)
target_compile_definitions(vsomeip_utilities PUBLIC SOURCE_DIR="${CMAKE_SOURCE_DIR}")

if (MSVC)
set_target_properties(vsomeip_utilities PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif ()
endif()
7 changes: 3 additions & 4 deletions test/common/src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ utility::get_all_files_in_dir(const std::string &_dir_path,

std::string
utility::get_policies_path() {

return boost::filesystem::canonical(
boost::filesystem::current_path()).string()
+ "/../test/common/examples_policies";
std::string source_dir = SOURCE_DIR;
boost::filesystem::path policies_path(source_dir+"/test/common/examples_policies");
return policies_path.string();
}

vsomeip_sec_client_t
Expand Down

0 comments on commit 4e04a75

Please sign in to comment.