Skip to content

Commit

Permalink
compile definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
bramtayl committed Nov 2, 2023
1 parent 1e754f0 commit d27827e
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 @@ -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

0 comments on commit d27827e

Please sign in to comment.