Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
0nullpointer authored Nov 9, 2023
1 parent 53915f1 commit ceb4716
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ target_compile_features(clip PUBLIC cxx_std_11)
target_link_libraries(clip PRIVATE ggml ${CLIP_EXTRA_LIBS})
set(BUILD_SHARED_LIBS ON)
if (BUILD_SHARED_LIBS)
# set(CLIP_BUILD_EXAMPLES OFF)
set(CLIP_BUILD_EXAMPLES OFF)
set(CLIP_BUILD_TESTS OFF)
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(clip PROPERTIES POSITION_INDEPENDENT_CODE ON)
Expand All @@ -275,9 +275,7 @@ endif()

add_subdirectory(models)

if (CLIP_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
add_subdirectory(examples)

if (CLIP_BUILD_TESTS)
add_subdirectory(tests)
Expand Down

0 comments on commit ceb4716

Please sign in to comment.