Skip to content

Commit

Permalink
compile definitions (csound#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramtayl authored and nonameentername committed Jan 18, 2024
1 parent ed5df4d commit 72841e5
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 @@ -491,8 +491,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 @@ -518,7 +517,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 72841e5

Please sign in to comment.