locomotiv is static library (#8212)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Wed, 16 Oct 2019 09:09:17 +0000 (18:09 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 16 Oct 2019 09:09:17 +0000 (18:09 +0900)
This commit changes locomotiv from shared to static library.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
compiler/locomotiv/CMakeLists.txt

index a3c3b07..de7057e 100644 (file)
@@ -2,7 +2,8 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
 file(GLOB_RECURSE TESTS "src/*.test.cpp")
 list(REMOVE_ITEM SOURCES ${TESTS})
 
-add_library(locomotiv SHARED ${SOURCES})
+add_library(locomotiv STATIC ${SOURCES})
+set_target_properties(locomotiv PROPERTIES POSITION_INDEPENDENT_CODE ON)
 target_include_directories(locomotiv PUBLIC include)
 target_include_directories(locomotiv PRIVATE src)
 target_link_libraries(locomotiv PUBLIC loco)