summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-05-17 16:39:41 +0900
committerHaejeong Kim <backto.kim@samsung.com>2017-05-17 16:39:41 +0900
commitbeeba1d851b990b7ac150452489c289d2e96dc47 (patch)
tree669fd1fed233a7200e877796d5357db5223785e8 /CMakeLists.txt
parent06a75284fb5bf7f8ddcd428a507b3efc81af7db4 (diff)
downloadlibmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.tar.gz
libmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.tar.bz2
libmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.zip
Add option to check warning error and fix warning
Change-Id: I834bfab50cfe98312fa1cba2d1db6ed85da4c3db
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7eb108f..8336a05 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,7 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC")