layers: do not override CMAKE_C_FLAGS
authorChia-I Wu <olv@lunarg.com>
Tue, 16 Dec 2014 02:57:50 +0000 (10:57 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 17 Dec 2014 03:01:45 +0000 (11:01 +0800)
We are warning free now using the project's CMAKE_C_FLAGS.

layers/CMakeLists.txt

index 37520d625b91276ee3f6162e8f293ee005b89a2e..012191d10832f5929e66221f5319b9f80f0f5738 100644 (file)
@@ -18,9 +18,6 @@ include_directories(
        ${CMAKE_CURRENT_BINARY_DIR}
 )
 
-# TODO : With standard settings below we get warnings as error due to unused functions.
-#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I ../include")
-set (CMAKE_C_FLAGS "-std=c99 -Wextra -Wno-sign-compare -Wno-unused-parameter -I ../include")
 set (CMAKE_CXX_FLAGS "-std=c++11")
 
 add_library (XGLLayerBasic SHARED basic.cpp)