Skip to content

Commit

Permalink
Update CMake install, Dockerfile and Valgrind (#218)
Browse files Browse the repository at this point in the history
* Update Docker and install system

* Update valgrind

* Fix
  • Loading branch information
pablogs9 authored Feb 10, 2021
1 parent e926398 commit d7957c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_BINARY_DIR}/temp_install)
foreach(d ${_deps})
list(GET d 0 _name)
list(GET d 1 _version)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PROJECT_BINARY_DIR}/temp_install/${_name}-${_version})
find_package(${_name} ${_version} REQUIRED)
endforeach()

Expand Down
3 changes: 1 addition & 2 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# MemoryCheck configuration.
find_program(MEMORYCHECK_COMMAND NAMES valgrind)
set(MEMORYCHECK_COMMAND_OPTIONS "${MEMORYCHECK_COMMAND_OPTIONS} --quiet --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=50 --xml=yes --xml-file=test_%p_memcheck.xml \"--suppressions=${CMAKE_CURRENT_SOURCE_DIR}/ci/valgrind.supp\"")

set(MEMORYCHECK_COMMAND_OPTIONS "${MEMORYCHECK_COMMAND_OPTIONS} --log-fd=2 --quiet --tool=memcheck --leak-check=yes --show-reachable=yes --error-exitcode=1 --num-callers=50 \"--suppressions=${CMAKE_CURRENT_SOURCE_DIR}/ci/valgrind.supp\"")
# Coverage configuration.
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
find_program(COVERAGE_COMMAND NAMES gcov)
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ ADD . /agent/
# Build Micro XRCE-DDS Agent and install
RUN cd /agent/build && \
cmake -DCMAKE_INSTALL_PREFIX=../install \
-DUAGENT_ISOLATED_INSTALL=OFF \
.. &&\
make && make install
make -j $(nproc) && make install

# Prepare Micro XRCE-DDS Agent artifacts
RUN cd /agent && \
Expand Down
2 changes: 1 addition & 1 deletion cmake/SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if(UAGENT_P2P_PROFILE)
PREFIX
${PROJECT_BINARY_DIR}/microxrcedds_client
INSTALL_DIR
${PROJECT_BINARY_DIR}/temp_install
${PROJECT_BINARY_DIR}/temp_install/microxrcedds_client-${_microxrcedds_client_version}
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DCMAKE_PREFIX_PATH:PATH=${CMAKE_PREFIX_PATH}
Expand Down

0 comments on commit d7957c0

Please sign in to comment.