Commit 7af08c27 authored by Davis King's avatar Davis King

Made test/CMakeLists.txt set GCC's warning level to all by default.

parent 8f364975
......@@ -136,6 +136,11 @@ ADD_EXECUTABLE(${target_name} main.cpp tester.cpp ${tests})
# add the folder containing the dlib folder to the include path
INCLUDE_DIRECTORIES(../..)
# Turn on all warnings when using gcc.
if (CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-W -Wall")
endif()
# There is a CMakeLists.txt file in the dlib source folder that tells cmake
# how to build the dlib library. Tell cmake about that file.
add_subdirectory(.. dlib_build)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment