Explorar el Código

[ci skip] Only set coverage option if COVERAGE==1

paulsapps hace 11 años
padre
commit
884213647d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -191,7 +191,7 @@ else()
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
 endif()
 
-if (UNIX)
+if (UNIX AND $ENV{COVERAGE} EQUALS 1)
       message("Setting coverage compiler options")
       SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") # debug, no optimisation
       SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") # enabling coverage