Little refactoring

This commit is contained in:
Dmitriy Karpushin 2023-02-13 10:42:47 +03:00
parent cdd527f3ac
commit b68c6b6807
2 changed files with 11 additions and 15 deletions

View file

@ -11,6 +11,8 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.17)
endif()
if(ANDROID)
# For a some reason cmake do not applying GNU_SOURCE/BSD_SOURCE flags on Android platform.
# We have to do this manually for building of libssh.
add_definitions(-D_BSD_SOURCE)
endif()