mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 05:02:11 +02:00
Fix Android compile error.
This commit is contained in:
@@ -75,9 +75,15 @@ endif()
|
||||
if(MODPLUG_BUILD_STATIC)
|
||||
add_library(modplug-static STATIC ${MODPLUG_SRC})
|
||||
target_include_directories(modplug-static PUBLIC src src/libmodplug ${CMAKE_CURRENT_BINARY_DIR})
|
||||
if(ANDROID)
|
||||
target_compile_definitions(modplug-static PUBLIC HAVE_SETENV HAVE_SINF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MODPLUG_BUILD_SHARED)
|
||||
add_library(modplug SHARED ${MODPLUG_SRC})
|
||||
target_include_directories(modplug PUBLIC src src/libmodplug ${CMAKE_CURRENT_BINARY_DIR})
|
||||
if(ANDROID)
|
||||
target_compile_definitions(modplug PUBLIC HAVE_SETENV HAVE_SINF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user