From c0b2e12d2844715bb7e98ef29135f9240e41126d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 17 Jun 2011 08:15:18 +0000 Subject: [PATCH] From Jorge Ciges, "This is one of those bugs that you don't find until you try to compile under another pc that doesn't have Cmake 2.8." --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cd98d13e..227c92e65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,9 @@ SET(CMAKE_MODULE_PATH "${OpenSceneGraph_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_ ## Option to enable Android build using AndroidNDK OPTION(OSG_BUILD_PLATFORM_ANDROID OFF) IF(OSG_BUILD_PLATFORM_ANDROID) + + CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR) + INCLUDE(OsgAndroidMacroUtils) SET(ANDROID TRUE) SET(ANDROID_PLATFORM 5)