You're welcome . In fact I am sorry that the tutorial still does not handle those pitfalls and Android support is still quite experimental. So thanks for the feedback, I'll put it on the list of things to integrate in the tutorial or perhaps even something like putting
That won't do, as you will have to use "Unix Makefiles" when compiling under Linux (or Mac OS X I would guess). This Android stuff is a bit hard because you have to consider so many different platforms, NDK versions and target devices .
One could however do something like:
IF(ANDROID)
IF(WIN32)
IF(NOT CMAKE_GENERATOR MATCHES "MSYS Makefiles")
MESSAGE(FATAL_ERROR "${CMAKE_GENERATOR} is unsupported by the NDK, please use MSYS Makefiles instead.")
ENDIF()
ELSE()
IF(NOT CMAKE_GENERATOR MATCHES "Unix Makefiles")
MESSAGE(FATAL_ERROR "${CMAKE_GENERATOR} is unsupported by the NDK, please use Unix Makefiles instead.")
ENDIF()
ENDIF()
ENDIF()
But then most likely something will change in the future and we'll have to update this now rather complicated (in the sense of no loger straight forward) code and perhaps make it even more complicated . I'll see if I can figure something out.