Skip to content

Commit

Permalink
mnt: avoid redundant definition in CMakeLists.txt (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
PABannier committed Dec 12, 2023
1 parent 9da6e10 commit 484ddca
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
endif()

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

set(CMAKE_CXX_FLAGS_RELEASE "-O3")

if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
Expand All @@ -18,20 +15,15 @@ else()
set(ENCODEC_STANDALONE OFF)
endif()

option(ENCODEC_BUILD_EXAMPLES "encodec: build examples" ${ENCODEC_STANDALONE})
option(ENCODEC_BUILD_EXAMPLES "encodec: build examples" ${ENCODEC_STANDALONE})

# Build libraries

set(ENCODEC_LIB encodec)

add_subdirectory(ggml)

add_library(
${ENCODEC_LIB}
encodec
encodec.cpp
encodec.h
)
add_library(${ENCODEC_LIB} encodec.cpp encodec.h)

if (ENCODEC_BUILD_EXAMPLES)
add_subdirectory(examples)
Expand Down

0 comments on commit 484ddca

Please sign in to comment.