1
0
Fork 0

renamed version -> flightgear-version to avoid breaking clang++.

clang++ headers end up including <version>, which picked up this file instead
of the system one, breaking builds.
This commit is contained in:
Julian Smith 2020-06-27 13:30:14 +01:00
parent 73c15c4d5c
commit d0aaf240f6
2 changed files with 1 additions and 1 deletions

View file

@ -78,7 +78,7 @@ set(CMAKE_RELWITHDEBINFO_POSTFIX "" CACHE STRING "add a postfix, usually empty
set(CMAKE_MINSIZEREL_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows")
# read 'version' file into a variable (stripping any newlines or spaces)
file(READ version versionFile)
file(READ flightgear-version versionFile)
if (NOT versionFile)
message(FATAL_ERROR "Unable to determine FlightGear version. Version file is missing.")
endif()