Commit 392326d6 authored by Eric Anholt's avatar Eric Anholt

Enable compiler warnings.

I would do the right set of warnings for gcc like we do for automake
projects, but the way you have to do it in cmake is ridiculous and so
apparently basically nobody enables compiler warnings with cmake.
parent eddabcf1
INCLUDE (CheckCCompilerFlag)
project (piglit)
......@@ -6,6 +7,11 @@ include(${CMAKE_ROOT}/Modules/FindTIFF.cmake)
include(${CMAKE_ROOT}/Modules/FindGLUT.cmake)
include(${CMAKE_ROOT}/Modules/FindPNG.cmake)
CHECK_C_COMPILER_FLAG("-Wall" C_COMPILER_FLAG_WALL)
IF (C_COMPILER_FLAG_WALL)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
ENDIF (C_COMPILER_FLAG_WALL)
FIND_LIBRARY( GLEW_glew_LIBRARY GLEW
/usr/lib
)
......
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