[coco.core] Apply strict compilation options (#3002)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 7 Feb 2019 04:42:03 +0000 (13:42 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 7 Feb 2019 04:42:03 +0000 (13:42 +0900)
* [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 <jh1302.park@samsung.com>
* Update comment

contrib/coco/core/CMakeLists.txt

index 0eafe44..623e443 100644 (file)
@@ -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)