Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile definitions #1773

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,7 @@ endif()

# carry on setting up libsndifle if so
if(USE_LIBSNDFILE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_LIBSNDFILE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBSNDFILE")
add_compile_definitions("USE_LIBSNDFILE")

if(EMSCRIPTEN)
include_directories(emscripten/deps/libsndfile-1.0.25/src/)
Expand All @@ -510,7 +509,7 @@ check_deps(USE_MP3 HAVE_SF_FORMAT_MPEG)

if (USE_MP3)
message(STATUS "Using libsndfile MP3 support")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSNDFILE_MP3")
add_compile_definitions("SNDFILE_MP3")
else()
message(STATUS "NOT Using libsndfile MP3 support")
endif()
Expand Down