Skip to content

Commit

Permalink
Still confused af but adding -DBUILD_SHARED_LIBS=OFF flag when conf…
Browse files Browse the repository at this point in the history
…iguring cmake, makes it build static, but it only works on linux?
  • Loading branch information
Noscka committed Aug 29, 2023
1 parent 2a7a699 commit 84407cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions External/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ if((${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC))
endif()
endif()

set(BUILD_SHARED_LIBS OFF)

add_subdirectory(DSPFilters)
add_subdirectory(Whisper)
4 changes: 2 additions & 2 deletions LVATT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
project (LVATT)

add_executable (${PROJECT_NAME} "LVATT.cpp" "Headers/AudioTranscribing.hpp" "Headers/Common.hpp" "Headers/SignalProcessing.hpp" "Headers/WAV.hpp")
target_link_libraries(${PROJECT_NAME} PRIVATE -static DSPFilters)
target_link_libraries(${PROJECT_NAME} PRIVATE whisper)
target_link_libraries(${PROJECT_NAME} -static DSPFilters)
target_link_libraries(${PROJECT_NAME} -static whisper)

# make executable static
if(WIN32)
Expand Down

0 comments on commit 84407cb

Please sign in to comment.