Skip to content

Commit

Permalink
fix macos build issue with sndfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Nov 3, 2023
1 parent 1743e48 commit e1a66fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)

set(VERSION 0.4.1)
set(VERSION 0.4.2)
project(TD-Faust VERSION ${VERSION})

set(SndFile_DIR ${SndFile_DIR})
Expand Down Expand Up @@ -72,6 +72,7 @@ if (MSVC)
find_package(SndFile REQUIRED HINTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libsndfile-1.2.0-win64/cmake")
target_link_libraries(${PROJECT_NAME} PRIVATE SndFile::sndfile)
else()
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libsndfile/install")
find_package(PkgConfig REQUIRED)
# We expect the user to have used brew to install the dependencies
# for libsndfile, to have built libsndfile as a static lib,
Expand Down
2 changes: 1 addition & 1 deletion build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cmake --build build --target install
cd ../..

# Use CMake for TD-Faust
cmake -Bbuild -G "Xcode" -DCMAKE_OSX_DEPLOYMENT_TARGET=$CMAKE_OSX_DEPLOYMENT_TARGET -DLIBFAUST_DIR="$LIBFAUST_DIR" -DSndFile_DIR="thirdparty/libsndfile/install" -DPYTHONVER=$PYTHONVER
cmake -Bbuild -G "Xcode" -DCMAKE_OSX_DEPLOYMENT_TARGET=$CMAKE_OSX_DEPLOYMENT_TARGET -DLIBFAUST_DIR="$LIBFAUST_DIR" -DPYTHONVER=$PYTHONVER

# Build TD-Faust (Release)
xcodebuild -configuration Release -project build/TD-Faust.xcodeproj
Expand Down

0 comments on commit e1a66fb

Please sign in to comment.