File tree Expand file tree Collapse file tree 5 files changed +327
-125
lines changed Expand file tree Collapse file tree 5 files changed +327
-125
lines changed Original file line number Diff line number Diff line change @@ -192,5 +192,5 @@ script:
192192 - mkdir build
193193 - cd build
194194 - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCXX_STD=$CXX_STD ..
195- - make testall
195+ - make testall VERBOSE=1
196196
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING
99 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
1010)
1111
12+ set (CMAKE_VERBOSE_MAKEFILE ON )
1213set (CXX_STD "c++11" CACHE STRING "Version of C++ standard in use" )
1314
1415# This project is infrastructure. Warnings from common warning levels should
1516# be errors on all compilers, unless explicitly silenced.
1617if (NOT WIN32 )
17- set (CMAKE_CXX_FLAGS "-Wall -Werror -std=${CXX_STD} " CACHE STRING "Flags used by the compiler during all build types." )
18+ set (CMAKE_CXX_FLAGS "-Wall -Werror -g -ggdb - std=${CXX_STD} " CACHE STRING "Flags used by the compiler during all build types." )
1819endif ()
1920
2021project (tinyformat)
@@ -24,7 +25,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
2425if (WIN32 )
2526 # Treat warnings as errors. Would set this above, but need the default
2627 # flags too, and `project()` behaves is differently on different systems.
27- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX" )
28+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX /Z7 /Od " )
2829endif ()
2930
3031add_executable (tinyformat_test tinyformat_test.cpp)
Original file line number Diff line number Diff line change 33# Should work with recent versions of both gcc and clang. (To compile with
44# clang use "make CXX=clang++".)
55
6- CXXFLAGS? =-Wall -Werror
6+ CXXFLAGS? =-Wall -Werror -g -ggdb
77CXX11FLAGS?=-std =c++11
88
99test : tinyformat_test_cxx98 tinyformat_test_cxx11
You can’t perform that action at this time.
0 commit comments