Imported Upstream version 1.19.0
[platform/core/ml/nnfw.git] / compiler / luci / pass / CMakeLists.txt
index 2361bb4..b8b406a 100644 (file)
@@ -1,4 +1,4 @@
-nnas_find_package(FlatBuffers EXACT 1.10 QUIET)
+nnas_find_package(FlatBuffers EXACT 1.12 QUIET)
 if(NOT FlatBuffers_FOUND)
   message(STATUS "FlatBuffers NOT FOUND")
   return()
@@ -8,11 +8,11 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
 file(GLOB_RECURSE TESTS "src/*.test.cpp")
 list(REMOVE_ITEM SOURCES ${TESTS})
 
-if (NOT LIBRARY_TYPE)
-  set(LIBRARY_TYPE "SHARED")
-endif(NOT LIBRARY_TYPE)
+if (NOT LUCI_LIBRARY_TYPE)
+  set(LUCI_LIBRARY_TYPE "SHARED")
+endif(NOT LUCI_LIBRARY_TYPE)
 
-add_library(luci_pass ${LIBRARY_TYPE} ${SOURCES})
+add_library(luci_pass ${LUCI_LIBRARY_TYPE} ${SOURCES})
 target_include_directories(luci_pass PRIVATE src)
 target_include_directories(luci_pass PUBLIC include)
 target_link_libraries(luci_pass PUBLIC loco)