diff options
author | tycho <work.tycho@gmail.com> | 2015-12-15 21:52:38 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-12-18 11:19:21 +0100 |
commit | 91d0abae4c8b0b4f6dfeb20a030848d08d369237 (patch) | |
tree | 98a8fa6488ca3872b0a9b3e711df8bf9d1c67bc9 | |
parent | Merge pull request #2751 from cuberite/PieceStructuresFix (diff) | |
download | cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.gz cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.bz2 cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.lz cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.xz cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.zst cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.zip |
-rw-r--r-- | SetFlags.cmake | 1 | ||||
m--------- | lib/cmake-coverage | 0 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 4 |
3 files changed, 5 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index f8335cd25..d3a6aba86 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -288,6 +288,7 @@ macro(set_exe_flags) if ("${CLANG_VERSION}" VERSION_GREATER 3.5) add_flags_cxx("-Wno-error=disabled-macro-expansion") endif() + add_flags_cxx("-Wno-error=unused-command-line-argument") endif() endif() diff --git a/lib/cmake-coverage b/lib/cmake-coverage -Subproject fde8c1ef14684d763e7728dda98d49f2330534d +Subproject 25af3c657e42543e3e8b43378ebc5381e6260da diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4db898fdb..bdab4bc58 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 2.6) enable_testing() +if (CMAKE_BUILD_TYPE STREQUAL "COVERAGE") + setup_target_for_coverage("${PROJECT_NAME}_coverage" "ctest" coverage) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) add_subdirectory(ChunkData) |