Skip to content

Commit

Permalink
CMake warning --
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Feb 3, 2025
1 parent d6f68df commit 60dd361
Show file tree
Hide file tree
Showing 3 changed files with 519 additions and 363 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ if(GTEST_LIBRARY)
endif ()
set_target_properties(unit_tests PROPERTIES COMPILE_FLAGS "-g -O0 --coverage")
set_target_properties(unit_tests PROPERTIES LINK_FLAGS "--coverage")
add_custom_command(TARGET unit_tests COMMAND find . -name *.gcda -delete)
add_custom_command(TARGET unit_tests POST_BUILD COMMAND find . -name *.gcda -delete)
else()
add_custom_target(unit_tests echo "ERROR: Cannot build unit_tests because Google Test (libgtest) was not found by cmake." COMMAND echo " If you have installed Google Test, re-run cmake." VERBATIM)
endif()
Expand Down
1 change: 1 addition & 0 deletions conf/cmake/Examples.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/action_api/storage-service-pro
add_custom_command(TARGET examples
COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/examples/run_all_examples.sh.in | sed "s~TO_FILL_IN~${CMAKE_BINARY_DIR}/examples/~g" > ${CMAKE_BINARY_DIR}/examples/run_all_examples.sh
COMMAND chmod +x ${CMAKE_BINARY_DIR}/examples/run_all_examples.sh
POST_BUILD
)
Loading

0 comments on commit 60dd361

Please sign in to comment.