From 23557dff621bbb65fc6263fd1ef7f6e812c6f444 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Tue, 31 Jul 2018 17:01:05 +0900 Subject: [PATCH] lottie: treat undefined symbol as error while building library and enable assembly building. Change-Id: I034d8bb84e61ecc56da6a66c18e620e8611dcb0b --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 453da55..f8b6318 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required( VERSION 3.2 ) #declare project -project( lottie-player VERSION 0.0.1 LANGUAGES C CXX ) +project( lottie-player VERSION 0.0.1 LANGUAGES C CXX ASM) #declare target add_library( lottie-player SHARED "" ) @@ -35,6 +35,11 @@ target_link_libraries(lottie-player "${CMAKE_THREAD_LIBS_INIT}" ) +target_link_libraries(lottie-player + PUBLIC + "-Wl,--no-undefined" + ) + #declare source and include files add_subdirectory(inc) add_subdirectory(src) -- 2.7.4