]> git.mxchange.org Git - flightgear.git/blobdiff - CMakeLists.txt
Ugly hack to detect the presence of fl_filename_free_list without relying on cmake...
[flightgear.git] / CMakeLists.txt
index 3d2fbd8c20ec317dfc36bb849b1c02213153bdc8..1952d7c86ee47ab9aab2e5fddf8da6d3690abba4 100644 (file)
@@ -227,7 +227,9 @@ if(ENABLE_LIBSVN)
 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