Fix Android compile error.

This commit is contained in:
Miku AuahDark
2022-03-05 13:25:03 +08:00
parent 7e97e2f28f
commit 4f30818c90
3 changed files with 37 additions and 0 deletions
+6
View File
@@ -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()