1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Correct config macro for expat lib on MacOS

Otherwise build breaks
This commit is contained in:
Vitaliy Kirsanov 2019-03-01 23:34:39 +03:00
parent 1c21e9358b
commit a2543ff60e
No known key found for this signature in database
GPG Key ID: 21ACE6627CF31E9B

View File

@ -34,10 +34,14 @@ ${LIB_SRC_DIRECTORY}expat/lib/xmltok_ns.c
#${LIB_SRC_DIRECTORY}expat/tests/runtestspp.cpp
)
# This defines the #define on both Windows and Linux.
add_definitions(
-D_LIB
-DCOMPILED_FROM_DSP
)
add_definitions(-D_LIB)
if(APPLE)
add_definitions(-DMACOS_CLASSIC)
else()
add_definitions(-DCOMPILED_FROM_DSP)
endif()
add_library( ${TARGET} STATIC ${SOURCES})
target_include_directories( ${TARGET} PRIVATE