Skip to content

Commit

Permalink
Fix x86 compile (#238)
Browse files Browse the repository at this point in the history
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
  • Loading branch information
junjiejiangjjj authored Dec 12, 2024
1 parent 7e58a37 commit 4ebd1da
Show file tree
Hide file tree
Showing 5 changed files with 2,218 additions and 2,000 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ else()
set(CMAKE_CXX_FLAGS "-O3 -Wall -fPIC ${CMAKE_CXX_FLAGS}")
endif()

if(CMAKE_LITE_BUILD_TYPE STREQUAL "SHARED")
set(LITE_BUILD_TYPE "SHARED")
else()
set(LITE_BUILD_TYPE "STATIC")
endif()

if(APPLE)
if(DEFINED ENV{HOMEBREW_PREFIX})
message(STATUS "Homebrew prefix from environment: $ENV{HOMEBREW_PREFIX}")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

include_directories(${CMAKE_CURRENT_LIST_DIR})

add_library(milite STATIC
add_library(milite ${LITE_BUILD_TYPE}
${CMAKE_CURRENT_LIST_DIR}/collection_meta.cpp
${CMAKE_CURRENT_LIST_DIR}/collection_data.cpp
${CMAKE_CURRENT_LIST_DIR}/storage.cpp
Expand Down
Loading

0 comments on commit 4ebd1da

Please sign in to comment.