diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-09-26 10:17:16 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-09-26 12:45:47 -0700 |
| commit | 52118e4dcbc105d2b83c774e001926aceb978488 (patch) | |
| tree | 57c65eeb732be3dc7c442f99be1aa8a0e463d886 /CMakeLists.txt | |
| parent | 97824a96b06f294476c6e1cabb3216282e86a308 (diff) | |
| download | nng-52118e4dcbc105d2b83c774e001926aceb978488.tar.gz nng-52118e4dcbc105d2b83c774e001926aceb978488.tar.bz2 nng-52118e4dcbc105d2b83c774e001926aceb978488.zip | |
Add C++ test program, proving C++ consumers work.
We fixed up the coverage flags for GNU C, but are not going to run
the C++ tests when doing coverage (they fail linking gcov for reasons
unknown.)
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06009b28..d95206c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,8 +102,8 @@ if (NNG_ENABLE_COVERAGE) # is older than that, you will need to find something newer. For # correct reporting, we always turn off all optimizations. if (CMAKE_C_COMPILER_ID STREQUAL "GNU") - set(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") - set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") + set(CMAKE_C_FLAGS "-g -O0 --coverage") + set(CMAKE_CXX_FLAGS "-g -O0 --coverage") elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang") set(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") |
