--- CMakeLists.txt.orig 2013-11-03 01:05:21.138229885 +0000 +++ CMakeLists.txt 2013-11-03 01:06:31.228680439 +0000 @@ -106,7 +106,11 @@ FIND_PACKAGE(GEOS) FIND_PACKAGE(Sqlite3) FIND_PACKAGE(ZLIB) + +OPTION(OSGEARTH_USE_V8 "Enable to use V8 JavaScript engine" ON) +IF(OSGEARTH_USE_V8) FIND_PACKAGE(V8) +ENDIF(OSGEARTH_USE_V8) OPTION(OSGEARTH_USE_QT "Enable to use Qt (build Qt-dependent libraries, plugins and examples)" ON)