Skip to content

Commit

Permalink
compile definitions (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramtayl committed Nov 2, 2023
1 parent 608877a commit d72aa79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,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 @@ -513,7 +512,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

0 comments on commit d72aa79

Please sign in to comment.