[Visp-commits] ViSP/CMakeModules "GenerateConfigScript.cmake"
"VISPConfig.cmake.in"
Fabien Spindler
fspindle at users.gforge.inria.fr
Fri Nov 17 16:01:55 CET 2006
Update of /cvsroot/visp/ViSP/CMakeModules
In directory s1:/tmp/cvs-serv13901/CMakeModules
Modified Files:
GenerateConfigScript.cmake VISPConfig.cmake.in
Log Message:
Add an option BUILD_TEST_COVERAGE to add g++ options needed for coverage tests
Index: VISPConfig.cmake.in
===================================================================
RCS file: /cvsroot/visp/ViSP/CMakeModules/VISPConfig.cmake.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** VISPConfig.cmake.in 8 Nov 2006 14:08:25 -0000 1.8
--- VISPConfig.cmake.in 17 Nov 2006 15:01:53 -0000 1.9
***************
*** 74,86 ****
)
! # Add build options for test coverage. Currently coverage is only supported on
! # gcc compiler
! # Because using -fprofile-arcs with shared lib can cause problems like:
! # hidden symbol `__bb_init_func', we add this option only for static library
! # build
! IF(CMAKE_COMPILER_IS_GNUCXX AND NOT BUILD_SHARED_LIBS AND CMAKE_BUILD_TYPE MATCHES "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! ENDIF(CMAKE_COMPILER_IS_GNUCXX AND NOT BUILD_SHARED_LIBS AND CMAKE_BUILD_TYPE MATCHES "Debug")
#
--- 74,86 ----
)
! IF(BUILD_TEST_COVERAGE)
! # Add build options for test coverage. Currently coverage is only supported
! # on gcc compiler
! # Because using -fprofile-arcs with shared lib can cause problems like:
! # hidden symbol `__bb_init_func', we add this option only for static
! # library build
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! ENDIF(BUILD_TEST_COVERAGE)
!
#
Index: GenerateConfigScript.cmake
===================================================================
RCS file: /cvsroot/visp/ViSP/CMakeModules/GenerateConfigScript.cmake,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** GenerateConfigScript.cmake 8 Nov 2006 14:08:25 -0000 1.13
--- GenerateConfigScript.cmake 17 Nov 2006 15:01:53 -0000 1.14
***************
*** 61,73 ****
ENDIF(BIT3_FOUND)
! # Add build options for test coverage. Currently coverage is only supported
! # on gcc compiler
! # Because using -fprofile-arcs with shared lib can cause problems like:
! # hidden symbol `__bb_init_func', we add this option only for static library
! # build
! IF(CMAKE_COMPILER_IS_GNUCXX AND NOT BUILD_SHARED_LIBS AND CMAKE_BUILD_TYPE MATCHES "Debug")
! SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! ENDIF(CMAKE_COMPILER_IS_GNUCXX AND NOT BUILD_SHARED_LIBS AND CMAKE_BUILD_TYPE MATCHES "Debug")
#---------------------------------------------------------------------
--- 61,73 ----
ENDIF(BIT3_FOUND)
! IF(BUILD_TEST_COVERAGE)
! # Add build options for test coverage. Currently coverage is only supported
! # on gcc compiler
! # Because using -fprofile-arcs with shared lib can cause problems like:
! # hidden symbol `__bb_init_func', we add this option only for static
! # library build
! SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ftest-coverage -fprofile-arcs")
! ENDIF(BUILD_TEST_COVERAGE)
!
#---------------------------------------------------------------------
More information about the Visp-commits
mailing list