endif(ENABLE_LIBSVN)
find_package(PLIB REQUIRED puaux pu js fnt)
-find_package(SimGear 2.7.0 REQUIRED)
+
+# FlightGear and SimGear versions need to match
+find_package(SimGear ${FLIGHTGEAR_VERSION} REQUIRED)
if (JPEG_FACTORY)
# check simgear was built with JPEG-factory support
globals->set_fg_root(root);
// validate it
- static char required_version[] = "2.7.0";
+ static char required_version[] = FLIGHTGEAR_VERSION;
string base_version = fgBasePackageVersion();
if ( !(base_version == required_version) ) {
// tell the operator how to use this application