Skip to content

Commit

Permalink
Changes in cmake scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
richiprosima committed Feb 19, 2016
1 parent 298e74d commit 608963c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CTestJenkins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CTEST_CMAKE_GENERATOR "${JENKINS_GENERATOR}")
set(CTEST_BUILD_OPTIONS "${JENKINS_BUILD_OPTIONS}")
set(CTEST_BUILD_CONFIGURATION "${JENKINS_BUILD_CONFIGURATION}")

set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "${CTEST_MEMORYCHECK_COMMAND_OPTIONS} -q --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=50 --xml=yes --xml-file=test_%p_memcheck.xml")
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "${CTEST_MEMORYCHECK_COMMAND_OPTIONS} -q --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=50 --xml=yes --xml-file=test_%p_memcheck.xml --suppressions='${CTEST_SOURCE_DIRECTORY}/valgrind.supp'")

set(CTEST_COVERAGE_CXX_FLAGS "-DCMAKE_CXX_FLAGS:STRING=-fprofile-arcs -ftest-coverage")
set(CTEST_COVERAGE_EXE_LD_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=-fprofile-arcs -ftest-coverage")
Expand Down
13 changes: 11 additions & 2 deletions cmake/dev/eprosima_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ macro(find_eprosima_package package)
)

if(NOT EXECUTE_RESULT EQUAL 0)
message(FATAL_ERROR "Cannot build Git submodule ${package} in debug mode")
message(FATAL_ERROR "Cannot build Git submodule ${package} in Debug mode")
endif()

execute_process(COMMAND ${CMAKE_COMMAND} --build . --config Release
Expand All @@ -80,7 +80,16 @@ macro(find_eprosima_package package)
)

if(NOT EXECUTE_RESULT EQUAL 0)
message(FATAL_ERROR "Cannot build Git submodule ${package} in release mode")
message(FATAL_ERROR "Cannot build Git submodule ${package} in Release mode")
endif()

execute_process(COMMAND ${CMAKE_COMMAND} --build . --config RelWithDebInfo
WORKING_DIRECTORY ${${package}ExternalDir}
RESULT_VARIABLE EXECUTE_RESULT
)

if(NOT EXECUTE_RESULT EQUAL 0)
message(FATAL_ERROR "Cannot build Git submodule ${package} in RelWithDebInfo mode")
endif()
else()
execute_process(COMMAND ${CMAKE_COMMAND} --build .
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/fastcdr
Submodule fastcdr updated from 29edb8 to 57ae25
11 changes: 11 additions & 0 deletions valgrind.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
obj:/usr/lib64/libstdc++.so.6.0.21
fun:call_init.part.0
fun:call_init
fun:_dl_init
obj:/usr/lib64/ld-2.21.so
}

0 comments on commit 608963c

Please sign in to comment.