Skip to content

Commit

Permalink
compile definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
bramtayl committed Oct 31, 2023
1 parent 5412904 commit 51bfc16
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 @@ -485,8 +485,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 @@ -512,7 +511,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 51bfc16

Please sign in to comment.