Permalink
Browse files

fix coverage builds for gcc and clang

  • Loading branch information...
tabbott committed Sep 17, 2015
1 parent 7f4359a commit c5c79e2cb7579598a39af1a7cd249023181665e3
Showing with 4 additions and 3 deletions.
  1. +3 −2 CMakeLists.txt
  2. +1 −1 build-common/cmake/ProjectHelper.cmake
View
@@ -1,11 +1,12 @@
cmake_minimum_required(VERSION 2.8)
project(regtools)
#Add build-common cmake modules path
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/build-common/cmake)
#include(ProjectHelper)
include(ProjectHelper)
include(TestHelper)
project(regtools)
#versioning stuff
@@ -1,7 +1,7 @@
set(CMAKE_CXX_FLAGS_PACKAGE ${CMAKE_CXX_FLAGS_RELEASE})
set(CMAKE_C_FLAGS_PACKAGE ${CMAKE_CXX_FLAGS_RELEASE})
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_COMPILER_IS_GNUCXX)
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU|Clang")
SET(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_DEBUG} --coverage")
SET(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_DEBUG} --coverage")
SET(CMAKE_EXE_LINKER_FLAGS_COVERAGE "${CMAKE_EXE_LINKER_FLAGS_DEBUG} --coverage")

0 comments on commit c5c79e2

Please sign in to comment.