From 47f2223b68a77b04dab7ebf191fb45fdcb4ae00f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 7 Feb 2019 13:42:03 +0900 Subject: [PATCH] [coco.core] Apply strict compilation options (#3002) * [coco.core] Apply strict compilation options With this change, warnings in coco_core library (not its test) are treated as an error when ENABLE_STRICT_BUILD is on. Signed-off-by: Jonghyun Park * Update comment --- contrib/coco/core/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/coco/core/CMakeLists.txt b/contrib/coco/core/CMakeLists.txt index 0eafe44..623e443 100644 --- a/contrib/coco/core/CMakeLists.txt +++ b/contrib/coco/core/CMakeLists.txt @@ -7,6 +7,10 @@ target_include_directories(coco_core PUBLIC include) # NOTE Some coco_core PUBLIC headers include nncc_core headers target_link_libraries(coco_core PUBLIC nncc_core) target_link_libraries(coco_core PRIVATE stdex) +# Let's apply nncc common compile options +# NOTE This will enable strict compilation (warnings as error). +# Please refer to top-level CMakeLists.txt for details +target_link_libraries(coco_core PRIVATE nncc_common) nncc_find_package(GTest QUIET) -- 2.7.4